classifier: Construct a Classifier

View source: R/all_generic.R

classifierR Documentation

Construct a Classifier

Description

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

Usage

classifier(x, colind, ...)

## S3 method for class 'projector'
classifier(
  x,
  colind = NULL,
  labels,
  new_data = NULL,
  knn = 1,
  global_scores = TRUE,
  ...
)

Arguments

x

projector

colind

...

...

extra args

labels

...

new_data

...

knn

...

global_scores

...

Value

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

See Also

Other classifier: classifier.multiblock_biprojector(), rf_classifier.projector()

Examples

# Assume proj is a fitted projector object
# Assume lbls are labels and dat is new data
# classifier(proj, labels = lbls, new_data = dat, knn = 3)

multivarious documentation built on Jan. 22, 2026, 1:06 a.m.