create classifier
from a projector
classifier.projector.Rd
create classifier
from a projector
Usage
# S3 method for projector
classifier(x, colind = NULL, labels, new_data, knn = 1, ...)
Arguments
- x
A model object, such as a
projector
, that has been fit to a training dataset.- colind
Optional vector of column indices used for prediction. If not provided, all columns will be used.
- labels
the labels associated with the rows of the projected data (see
new_data
)- new_data
reference data associated with
labels
and to be projected into subspace (required).- knn
the number of nearest neighbors to use when classifying a new point.
- ...
Additional arguments to be passed to the specific model implementation of
classifier
.
See also
Other classifier:
classifier.multiblock_biprojector()