predict.classifier | R Documentation |
predict with a classifier object
## S3 method for class 'classifier'
predict(
object,
new_data,
ncomp = NULL,
colind = NULL,
metric = c("cosine", "euclidean"),
...
)
object |
the model fit |
new_data |
new data to predict on |
ncomp |
the number of components to use |
colind |
the column indices to select in the projection matrix |
metric |
the similarity metric ("euclidean" or "cosine") |
... |
additional arguments to projection function |
a list with the predicted class and probabilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.