classifier.discriminant_projector | R Documentation |
Constructs a k-NN classifier for a discriminant projector, with an option to use a subset of the components.
## S3 method for class 'discriminant_projector'
classifier(x, colind = NULL, knn = 1, ...)
x |
the discriminant projector object |
colind |
an optional vector specifying the column indices of the components to use for prediction (NULL by default) |
knn |
the number of nearest neighbors to consider in the k-NN classifier (default is 1) |
... |
extra arguments |
a classifier object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.