classifier.multiblock_biprojector | R Documentation |
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.
## S3 method for class 'multiblock_biprojector'
classifier(
x,
colind = NULL,
labels,
new_data = NULL,
block = NULL,
global_scores = TRUE,
knn = 1,
...
)
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. |
A multiblock classifier object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.