Description Usage Arguments Value Examples
View source: R/generateHyperControl.R
Tries to automatically create a suitable hyperparameter tuning control.
1 2 3 4 5 6 | generateHyperControl(
task,
par.config = NULL,
learner = NULL,
budget.evals = 250
)
|
task |
[ |
par.config |
[ |
learner |
[ |
budget.evals |
[ |
[HyperControl
]
1 2 3 4 5 6 7 8 9 10 11 12 13 | par.config = getDefaultParConfig("regr.randomForest")
hyper.control = generateHyperControl(bh.task, par.config)
# get what is inside
getHyperControlMeasures(hyper.control)
getHyperControlMlrControl(hyper.control)
getHyperControlResampling(hyper.control)
# change what is inside
hyper.control = setHyperControlMeasures(hyper.control, measures = medse)
hyper.control = setHyperControlMlrControl(
hyper.control,
mlr.control = makeTuneControlRandom(maxit = 10))
hyper.control = setHyperControlResampling(hyper.control, resampling = cv3)
hyperopt(task = bh.task, par.config = par.config, hyper.control = hyper.control)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.