predict with a classifier object
# S3 method for classifier
predict(
object,
new_data,
ncomp = NULL,
colind = NULL,
metric = c("cosine", "euclidean"),
...
)
a list with the predicted class and probabilities
the model fit
new data to predict on
the number of components to use
the column indices to select in the projection matrix
the similarity metric ("euclidean" or "cosine")
additional arguments to projection function