getHyperPars | R Documentation |
Retrieves the current hyperparameter settings of a learner.
getHyperPars(learner, for.fun = c("train", "predict", "both"))
learner |
(Learner) |
for.fun |
( |
This function only shows hyperparameters that differ from the
learner default (because mlr
changed the default) or if the user set
hyperparameters manually during learner creation. If you want to have an
overview of all available hyperparameters use getParamSet()
.
(list). A named list of values.
Other learner:
LearnerProperties
,
getClassWeightParam()
,
getLearnerId()
,
getLearnerNote()
,
getLearnerPackages()
,
getLearnerParVals()
,
getLearnerParamSet()
,
getLearnerPredictType()
,
getLearnerShortName()
,
getLearnerType()
,
getParamSet()
,
helpLearner()
,
helpLearnerParam()
,
makeLearner()
,
makeLearners()
,
removeHyperPars()
,
setHyperPars()
,
setId()
,
setLearnerId()
,
setPredictThreshold()
,
setPredictType()
getHyperPars(makeLearner("classif.ranger"))
## set learner hyperparameter `mtry` manually
getHyperPars(makeLearner("classif.ranger", mtry = 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.