Featureless Classification Learner
A simple LearnerClassif which only analyzes the labels during train, ignoring all features. Hyperparameter method
determines the mode of operation during prediction:
This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn()
:
mlr_learners$get("classif.featureless")
lrn("classif.featureless")
Id | Type | Default | Levels |
method | character | mode | mode, sample, weighted.sample |
Chapter in the mlr3book: https://mlr3book.mlr-org.com/chapters/chapter2/data_and_basic_modeling.html#sec-learners
Package list("mlr3learners") for a solid collection of essential learners.
Package mlr3extralearners for more learners.
Dictionary of Learners : mlr_learners
as.data.table(mlr_learners)
for a table of available Learners in the running session (depending on the loaded packages).
list("mlr3pipelines") to combine learners with pre- and postprocessing steps.
Package list("mlr3viz") for some generic visualizations.
Extension packages for additional task types:
list("mlr3tuning") for tuning of hyperparameters, list("mlr3tuningspaces")
for established default tuning spaces.
Other Learner: Learner
, LearnerClassif
, LearnerRegr
, mlr_learners
, mlr_learners_classif.debug
, mlr_learners_classif.rpart
, mlr_learners_regr.debug
, mlr_learners_regr.featureless
, mlr_learners_regr.rpart
mlr3::Learner
-> mlr3::LearnerClassif
-> LearnerClassifFeatureless
new()
Creates a new instance of this R6 class.
LearnerClassifFeatureless$new()
importance()
All features have a score of 0
for this learner.
LearnerClassifFeatureless$importance()
Named numeric()
.
selected_features()
Selected features are always the empty set for this learner.
LearnerClassifFeatureless$selected_features()
character(0)
.
clone()
The objects of this class are cloneable with this method.
LearnerClassifFeatureless$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links