Skip to contents

A simple mlr3misc::Dictionary storing objects of class Terminator. Each terminator has an associated help page, see mlr_terminators_[id].

This dictionary can get populated with additional terminators by add-on packages.

For a more convenient way to retrieve and construct terminator, see trm()/trms().

Format

R6::R6Class object inheriting from mlr3misc::Dictionary.

Methods

See mlr3misc::Dictionary.

S3 methods

Examples

as.data.table(mlr_terminators)
#> Key: <key>
#>                       key                  label             properties
#>                    <char>                 <char>                 <list>
#> 1:             clock_time             Clock Time single-crit,multi-crit
#> 2:                  combo            Combination single-crit,multi-crit
#> 3:                  evals   Number of Evaluation single-crit,multi-crit
#> 4:                   none                   None single-crit,multi-crit
#> 5:           perf_reached      Performance Level            single-crit
#> 6:               run_time               Run Time single-crit,multi-crit
#> 7:             stagnation             Stagnation            single-crit
#> 8:       stagnation_batch       Stagnation Batch            single-crit
#> 9: stagnation_hypervolume Stagnation Hypervolume             multi-crit
#>           unit
#>         <char>
#> 1:     seconds
#> 2:     percent
#> 3: evaluations
#> 4:     percent
#> 5:     percent
#> 6:     seconds
#> 7:     percent
#> 8:     percent
#> 9:     percent
mlr_terminators$get("evals")
#> <TerminatorEvals>: Number of Evaluation
#> * Parameters: n_evals=100, k=0
trm("evals", n_evals = 10)
#> <TerminatorEvals>: Number of Evaluation
#> * Parameters: n_evals=10, k=0