set_validate.AutoTuner {mlr3tuning} | R Documentation |
Configure Validation for AutoTuner
Description
Configure validation for the final model fit (final_validate
), as well as
during the tuning (validate
).
Usage
## S3 method for class 'AutoTuner'
set_validate(learner, validate, final_validate, ...)
Arguments
learner |
( |
validate |
( |
final_validate |
( |
... |
(any) |
Examples
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
[Package mlr3tuning version 1.0.0 Index]