Learn R Programming

multivarious (version 0.3.1)

classifier: 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 projector classifier( x, colind = NULL, labels, new_data = NULL, knn = 1, global_scores = TRUE, ... )

Value

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

Arguments

x

projector

colind

...

...

extra args

labels

...

new_data

...

knn

...

global_scores

...

See Also

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab