set_validate.AutoTuner | R Documentation |
Configure validation data for the learner that is tuned by the AutoTuner
.
## S3 method for class 'AutoTuner'
set_validate(learner, validate, ...)
learner |
( |
validate |
( |
... |
(any) |
at = auto_tuner(
tuner = tnr("random_search"),
learner = lrn("classif.debug", early_stopping = TRUE,
iter = to_tune(upper = 1000L, internal = TRUE), validate = 0.2),
resampling = rsmp("holdout")
)
# use the test set as validation data during tuning
set_validate(at, validate = "test")
at$learner$validate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.