mlr_learners {mlr3} | R Documentation |
Dictionary of Learners
Description
A simple mlr3misc::Dictionary storing objects of class Learner.
Each learner has an associated help page, see mlr_learners_[id]
.
This dictionary can get populated with additional learners by add-on packages. For an opinionated set of solid classification and regression learners, install and load the mlr3learners package. More learners are connected via https://github.com/mlr-org/mlr3extralearners.
For a more convenient way to retrieve and construct learners, see lrn()
/lrns()
.
Format
R6::R6Class object inheriting from mlr3misc::Dictionary.
Methods
See mlr3misc::Dictionary.
S3 methods
-
as.data.table(dict, ..., objects = FALSE)
mlr3misc::Dictionary ->data.table::data.table()
Returns adata.table::data.table()
with fields "key", "label", "task_type", "feature_types", "packages", "properties", and "predict_types" as columns. Ifobjects
is set toTRUE
, the constructed objects are returned in the list column namedobject
.
See Also
Sugar functions: lrn()
, lrns()
Extension Packages: mlr3learners
Other Dictionary:
mlr_measures
,
mlr_resamplings
,
mlr_task_generators
,
mlr_tasks
Other Learner:
Learner
,
LearnerClassif
,
LearnerRegr
,
mlr_learners_classif.debug
,
mlr_learners_classif.featureless
,
mlr_learners_classif.rpart
,
mlr_learners_regr.debug
,
mlr_learners_regr.featureless
,
mlr_learners_regr.rpart
Examples
as.data.table(mlr_learners)
mlr_learners$get("classif.featureless")
lrn("classif.rpart")