Skip to contents

Constructs a classifier for a multiblock bi-projector model that can generate predictions for new data points.

Usage

# S3 method for multiblock_biprojector
classifier(
  x,
  colind = NULL,
  labels,
  new_data = NULL,
  block = NULL,
  knn = 1,
  ...
)

Arguments

x

A fitted multiblock bi-projector model object.

colind

An optional vector of column indices used for prediction (default: NULL).

labels

A factor or vector of class labels for the training data.

new_data

An optional data matrix for which to generate predictions (default: NULL).

block

An optional block index for prediction (default: NULL).

knn

The number of nearest neighbors to consider in the classifier (default: 1).

...

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

Value

A multiblock classifier object.

See also

Other classifier: classifier.projector()