View source: R/control_sim_anneal.R
control_sim_anneal | R Documentation |
Control aspects of the simulated annealing search process
control_sim_anneal(
verbose = FALSE,
verbose_iter = TRUE,
no_improve = Inf,
restart = 8L,
radius = c(0.05, 0.15),
flip = 3/4,
cooling_coef = 0.02,
extract = NULL,
save_pred = FALSE,
time_limit = NA,
pkgs = NULL,
save_workflow = FALSE,
save_history = FALSE,
event_level = "first",
parallel_over = NULL,
allow_par = TRUE,
backend_options = NULL
)
verbose |
A logical for logging results (other than warnings and errors,
which are always shown) as they are generated during training in a single
R process. When using most parallel backends, this argument typically will
not result in any logging. If using a dark IDE theme, some logging messages
might be hard to see; try setting the |
verbose_iter |
A logical for logging results of the search
process. Defaults to FALSE. If using a dark IDE theme, some logging
messages might be hard to see; try setting the |
no_improve |
The integer cutoff for the number of iterations without better results. |
restart |
The number of iterations with no improvement before new tuning parameter candidates are generated from the last, overall best conditions. |
radius |
Two real numbers on |
flip |
A real number between |
cooling_coef |
A real, positive number to influence the cooling schedule. Larger values decrease the probability of accepting a sub-optimal parameter setting. |
extract |
An optional function with at least one argument (or |
save_pred |
A logical for whether the out-of-sample predictions should be saved for each model evaluated. |
time_limit |
A number for the minimum number of minutes (elapsed) that
the function should execute. The elapsed time is evaluated at internal
checkpoints and, if over time, the results at that time are returned (with
a warning). This means that the |
pkgs |
An optional character string of R package names that should be loaded (by namespace) during parallel processing. |
save_workflow |
A logical for whether the workflow should be appended to the output as an attribute. |
save_history |
A logical to save the iteration details of the search.
These are saved to |
event_level |
A single string containing either |
parallel_over |
A single string containing either If If If Note that switching between |
allow_par |
A logical to allow parallel processing (if a parallel backend is registered). |
backend_options |
An object of class |
An object of class control_sim_anneal
that echos the argument values.
control_sim_anneal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.