predict.classifier: predict with a classifier object

View source: R/classifier.R

predict.classifierR 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


bbuchsbaum/multivarious documentation built on April 15, 2024, 3:33 a.m.