Retrieves the current hyperparameter settings of a learner.
getHyperPars(learner, for.fun = c("train", "predict", "both"))
learner | (Learner) |
---|---|
for.fun | ( |
(list). A named list of values.
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()
.
Other learner:
LearnerProperties
,
getClassWeightParam()
,
getLearnerId()
,
getLearnerNote()
,
getLearnerPackages()
,
getLearnerParVals()
,
getLearnerParamSet()
,
getLearnerPredictType()
,
getLearnerShortName()
,
getLearnerType()
,
getParamSet()
,
helpLearnerParam()
,
helpLearner()
,
makeLearners()
,
makeLearner()
,
removeHyperPars()
,
setHyperPars()
,
setId()
,
setLearnerId()
,
setPredictThreshold()
,
setPredictType()
#> $num.threads #> [1] 1 #> #> $verbose #> [1] FALSE #> #> $respect.unordered.factors #> [1] "order" #>## set learner hyperparameter `mtry` manually getHyperPars(makeLearner("classif.ranger", mtry = 100))#> $num.threads #> [1] 1 #> #> $verbose #> [1] FALSE #> #> $respect.unordered.factors #> [1] "order" #> #> $mtry #> [1] 100 #>