Set parameters that control the monitoring of resample estimation of model performance and of tuning parameter optimization.
set_monitor(object, ...)# S3 method for MLControl
set_monitor(object, progress = TRUE, verbose = FALSE, ...)
# S3 method for MLOptimization
set_monitor(object, progress = FALSE, verbose = FALSE, ...)
# S3 method for ModelSpecification
set_monitor(object, which = c("all", "control", "optim"), ...)
Argument object
updated with the supplied parameters.
resampling control, tuning parameter optimization, or model specification object.
arguments passed from the ModelSpecification
method to the
others.
logical indicating whether to display iterative progress during resampling or optimization. In the case of resampling, a progress bar will be displayed if a computing cluster is not registered or is registered with the doSNOW package.
numeric or logical value specifying the level of progress
detail to print, with 0 (FALSE
) indicating none and 1 (TRUE
)
or higher indicating increasing amounts of detail.
character string specifying the monitoring parameters to set as
"all"
, "control"
, or optimization ("optim"
).
resample
, set_optim
,
set_predict
, set_strata
CVControl() %>% set_monitor(verbose = TRUE)
Run the code above in your browser using DataLab