Description Usage Arguments Value Examples
Restarts the tuning process if an error occured.
1 2 | restartTuneRanger(save.file.path = "optpath.RData", task,
measure = NULL)
|
save.file.path |
File name in the current working directory to which interim results were saved by |
task |
The mlr task created by |
measure |
Performance measure that was already used in the original |
A list with elements
|
Recommended hyperparameters. |
|
A data.frame with all evaluated hyperparameters and performance and time results for each run. |
No model is build.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
library(tuneRanger)
library(mlr)
# iris is a bit nonsense here
# A mlr task has to be created in order to use the package
# the already existing iris task is used here
estimateTimeTuneRanger(iris.task)
# temporarily file name to save results
path = tempfile()
res = tuneRanger(iris.task, measure = list(multiclass.brier), num.trees = 1000,
num.threads = 8, iters = 70, save.file.path = path)
# Mean of best 5 % of the results
res
# Restart after failing in one of the iterations:
res = restartTuneRanger(save.file.path = path, iris.task,
measure = list(multiclass.brier))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.