classifier.multiblock_biprojector | R Documentation |
Constructs a k-Nearest Neighbors (k-NN) classifier based on a fitted
multiblock_biprojector
model object. The classifier uses the projected scores
as the feature space for k-NN.
## S3 method for class 'multiblock_biprojector'
classifier(
x,
colind = NULL,
labels,
new_data = NULL,
block = NULL,
global_scores = TRUE,
knn = 1,
...
)
x |
A fitted |
colind |
An optional numeric vector specifying column indices from the original data space.
If provided when |
labels |
A factor or vector of class labels for the training data. |
new_data |
An optional data matrix used to generate reference scores when |
block |
An optional integer specifying a predefined block index.
Used for partial projection if |
global_scores |
Logical. DEPRECATED This argument is deprecated and its behavior has changed. Reference scores are now determined automatically:
|
knn |
The integer number of nearest neighbors (k) for the k-NN algorithm (default: 1). |
... |
Additional arguments (currently ignored). |
Users can specify whether to use the globally projected scores stored within the model
(global_scores = TRUE
) or to generate reference scores by projecting provided new_data
(global_scores = FALSE
). Partial projections based on colind
or block
can be used
when global_scores = FALSE
or when new_data
is provided alongside colind
/block
.
Prediction behavior is further controlled by arguments passed to predict.classifier
.
An object of class multiblock_classifier
, which also inherits from classifier
.
Other classifier:
classifier.projector()
,
rf_classifier.projector()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.