LearnerClassifFeatureless: Featureless Classification Learner

Description Format Construction See Also

Description

A simple LearnerClassif which only analyses the labels during train, ignoring all features. Hyperparameter method determines the mode of operation during prediction:

mode:

Predicts the most frequent label. If there are two or more labels tied, randomly selects one per prediction.

sample:

Randomly predict a label uniformly.

weighed.sample:

Randomly predict a label, with probability estimated from the training distribution.

Format

R6::R6Class inheriting from LearnerClassif.

Construction

1
2
3
LearnerClassifFeatureless$new()
mlr_learners$get("classif.featureless")
lrn("classif.featureless")

See Also

Dictionary of Learners: mlr_learners


mllg/mlr3 documentation built on Sept. 27, 2019, 9:38 a.m.