predict.classifier {multivarious} | R Documentation |
predict with a classifier object
Description
predict with a classifier object
Usage
## S3 method for class 'classifier'
predict(
object,
new_data,
ncomp = NULL,
colind = NULL,
metric = c("cosine", "euclidean"),
...
)
Arguments
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 |
Value
a list with the predicted class and probabilities
[Package multivarious version 0.2.0 Index]