predict with a classifier object
Usage
# S3 method for 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