Description Usage Arguments Value Examples
Functions to retrieve objects, set hyperparameters and assign to fields in one go.
Relies on mlr3misc::dictionary_sugar()
to extract objects from the respective mlr3misc::Dictionary:
tsk()
for a Task from mlr_tasks.
tgen()
for a TaskGenerator from mlr_task_generators.
lrn()
for a Learner from mlr_learners.
rsmp()
for a Resampling from mlr_resamplings.
msr()
for a Measure from mlr_measures.
1 2 3 4 5 6 7 8 9 |
.key |
:: |
... |
:: named |
R6::R6Class of the respective type.
1 2 3 4 5 6 7 8 9 | # iris task with new id
tsk("iris", id = "iris2")
# classification tree with different hyperparameters
# and predict type set to predict probabilities
lrn("classif.rpart", cp = 0.1, predict_type = "prob")
# multiple learners with predict type 'prob'
lapply(c("classif.featureless", "classif.rpart"), lrn, predict_type = "prob")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.