deephyper.stopper.Stopper
deephyper.stopper.Stopper#
-
class
deephyper.stopper.
Stopper
(max_steps: int)[source]# Bases:
abc.ABC
An abstract class describing the interface of a Stopper.
- Parameters
max_steps (int) – the maximum number of calls to
observe(budget, objective)
.
Methods
Observe a new objective value.
Returns
True
if the evaluation should be stopped andFalse
otherwise.Returns a dict version of the stopper which can be saved as JSON.
Replaces the currently observed objective by the maximum objective observed from the start.
Attributes
Last observed objective.
Returns a copy of the list of observations with 0-index the budgets and 1-index the objectives.
Last observed step.
-
property
objective
# Last observed objective.
-
property
observations
# Returns a copy of the list of observations with 0-index the budgets and 1-index the objectives.
-
property
step
# Last observed step.