R/TerminatorGenerations.R
mlr_terminators_gens.Rd
Terminator
that terminates after a given number of generations have passed in OptimizerMies
.
If OptimizerMies
is started on an archive that already has evaluated configurations, these evaluations count as
generation 0. If an initial, randomly sampled generation is generated by OptimizerMies
, it has generation number 1.
Setting generation
to 1 therefore terminates after the evaluation of the initial sample, unless no initial sample is
generated by OptimizerMies
and instead found in the archive. generation
set to 0 avoids any evaluation within OptimizerMies
(but is ignored if no dob
column is in the archive).
When doing multi-fidelity optimization, and fidelity of a configuration is increased because of a step in the fidelity schedule, or because they were sampled new and survived, then this fidelity refinement happens as part of an already started generation. This means termination at this fidelity refinement step is avoided.
This Terminator
can be created with the short access form trm()
(trms()
to get a list),
or through the dictionary mlr_terminators
in the following way:
generations
:: integer(1)
Number of generations to evaluate, after which to stop. Not initialized and should be set to the desired value during construction.
bbotk::Terminator
-> TerminatorGenerations
is_terminated()
Is TRUE
if when the termination criterion is matched, FALSE
otherwise.
archive
Archive
Archive to check.