mlr3 (version 0.1.0-9000)

LearnerClassifFeatureless: Featureless Classification Learner

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.

Usage

LearnerClassifFeatureless

Arguments

Format

R6::R6Class inheriting from LearnerClassif.