classifier.projector | R Documentation |
classifier
from a projector
create classifier
from a projector
## S3 method for class 'projector'
classifier(x, colind = NULL, labels, new_data, knn = 1, ...)
x |
A model object, such as a |
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 |
reference data associated with |
knn |
the number of nearest neighbors to use when classifying a new point. |
... |
Additional arguments to be passed to the specific model implementation of |
a classifier
object
Other classifier:
classifier.multiblock_biprojector()
data(iris)
X <- iris[,1:4]
pcres <- pca(as.matrix(X),2)
cfier <- classifier(pcres, labels=iris[,5], new_data=as.matrix(iris[,1:4]))
p <- predict(cfier, as.matrix(iris[,1:4]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.