OnDeltaImprovement

class ioh.iohcpp.logger.trigger.OnDeltaImprovement(self, delta: float = 1e-10)

Bases: Trigger

Trigger that evaluates to true when improvement of the objective function is observed of at least greater than delta. It keeps the best value of a run, so loggers used at the same time (e.g. in different threads) each need their own, rather than sharing ON_DELTA_IMPROVEMENT.

Attributes Summary

best_so_far

(self) -> float

delta

(self) -> float

Methods Summary

__call__(self, arg0, arg1, /)

reset(self)

Attributes Documentation

best_so_far

(self) -> float

delta

(self) -> float

Methods Documentation

__call__(self, arg0: ioh.iohcpp.LogInfo, arg1: ioh.iohcpp.MetaData, /) → bool
reset(self) → None