Description Usage Arguments Value Examples
An xgboost model is optimized based on a measure (see [Measure
]).
The bounds of the parameter in which the model is optimized, are defined by autoxgbparset
.
For the optimization itself bayesian optimization with mlrMBO is used.
Without any specification of the control object, the optimizer runs for for 80 iterations or 1 hour, whatever happens first.
Both the parameter set and the control object can be set by the user.
1 2 3 4 5 6 | autoxgboost(task, measure = NULL, control = NULL, iterations = 160L,
time.budget = 3600L, par.set = NULL, max.nrounds = 10^6,
early.stopping.rounds = 10L, early.stopping.fraction = 4/5,
build.final.model = TRUE, design.size = 15L,
impact.encoding.boundary = 10L, mbo.learner = NULL, nthread = NULL,
tune.threshold = TRUE)
|
task |
[ |
measure |
[ |
control |
[ |
iterations |
[ |
time.budget |
[ |
par.set |
[ |
max.nrounds |
[ |
early.stopping.rounds |
[ |
early.stopping.fraction |
[ |
build.final.model |
[ |
design.size |
[ |
impact.encoding.boundary |
[ |
mbo.learner |
[ |
nthread |
[integer(1)] |
tune.threshold |
[logical(1)] |
AutoxgbResult
1 2 3 4 5 | iris.task = makeClassifTask(data = iris, target = "Species")
ctrl = makeMBOControl()
ctrl = setMBOControlTermination(ctrl, iters = 1L) #Speed up Tuning by only doing 1 iteration
res = autoxgboost(iris.task, control = ctrl, tune.threshold = FALSE)
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.