getHyperPars {mlr} | R Documentation |
Get current parameter settings for a learner.
Description
Retrieves the current hyperparameter settings of a learner.
Usage
getHyperPars(learner, for.fun = c("train", "predict", "both"))
Arguments
learner |
(Learner) |
for.fun |
( |
Details
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()
.
Value
(list). A named list of values.
See Also
Other learner:
LearnerProperties
,
getClassWeightParam()
,
getLearnerId()
,
getLearnerNote()
,
getLearnerPackages()
,
getLearnerParVals()
,
getLearnerParamSet()
,
getLearnerPredictType()
,
getLearnerShortName()
,
getLearnerType()
,
getParamSet()
,
helpLearner()
,
helpLearnerParam()
,
makeLearner()
,
makeLearners()
,
removeHyperPars()
,
setHyperPars()
,
setId()
,
setLearnerId()
,
setPredictThreshold()
,
setPredictType()
Examples
getHyperPars(makeLearner("classif.ranger"))
## set learner hyperparameter `mtry` manually
getHyperPars(makeLearner("classif.ranger", mtry = 100))