predict.democratic: Predictions of the Democratic method

Description Usage Arguments Details Value

View source: R/Democratic.R

Description

Predicts the label of instances according to the democratic model.

Usage

1
2
## S3 method for class 'democratic'
predict(object, x, ...)

Arguments

object

Democratic model built with the democratic function.

x

A object that can be coerced as matrix. Depending on how was the model built, x is interpreted as a matrix with the distances between the unseen instances and the selected training instances, or a matrix of instances.

...

This parameter is included for compatibility reasons.

Details

For additional help see democratic examples.

Value

Vector with the labels assigned.


ssc documentation built on Dec. 16, 2019, 1:26 a.m.