classifier.multiblock_biprojector: Multiblock Bi-Projector Classifier

View source: R/classifier.R

classifier.multiblock_biprojectorR Documentation

Multiblock Bi-Projector Classifier

Description

Constructs a classifier for a multiblock bi-projector model object. Either global or partial scores can be used. If colind or block are provided and global_scores=FALSE, partial projection is performed. Otherwise, global projection is used.

Usage

## S3 method for class 'multiblock_biprojector'
classifier(
  x,
  colind = NULL,
  labels,
  new_data = NULL,
  block = NULL,
  global_scores = TRUE,
  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).

global_scores

Whether to use the global scores or the partial scores for reference space (default: TRUE).

knn

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

...

Additional arguments.

Value

A multiblock classifier object.


bbuchsbaum/multivarious documentation built on Dec. 23, 2024, 7:47 a.m.