Skip to contents

Create a classifier from a given model object (e.g., projector). This classifier can generate predictions for new data points.

Usage

classifier(x, colind, ...)

Arguments

x

A model object, such as a projector, that has been fit to a training dataset.

colind

Optional vector of column indices used for prediction. If not provided, all columns will be used.

...

Additional arguments to be passed to the specific model implementation of classifier.

Value

A classifier function that can be used to make predictions on new data points.