Description Usage Arguments Value Examples
Tunes the Hyperparameters for a given task and learner. Tries to find the best parameter set to tune for the given learner.
1 2 3 4 5 6 7 |
task |
[ |
learner |
[ |
par.config |
[ |
hyper.control |
[ |
show.info |
[ |
[TuneResult
]
1 2 3 4 5 6 7 8 9 10 11 12 13 | # the shortest way of hyperparameter optimization
hyperopt(iris.task, "classif.svm")
# manually defining the paramer space configuration
par.config = makeParConfig(
par.set = makeParamSet(
makeIntegerParam("mtry", lower = 1, upper = 4),
makeDiscreteParam("ntree", values = c(10, 25, 50))
),
par.vals = list(replace = FALSE),
learner.name = "randomForest"
)
hyperopt(bh.task, par.config = par.config)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.