deephyper.stopper.MedianStopper#
- class deephyper.stopper.MedianStopper(max_steps: int, min_steps: int = 1, min_competing: int = 10, interval_steps: int = 1, epsilon: float = 1e-10)[source]#
Bases:
StopperStopper based on the median of observed objectives at similar budgets.
Single-Objective
Multi-Objectives
Failures
✅
❌
❌
Methods
Observe a new objective value.
Returns
Trueif the evaluation should be stopped andFalseotherwise.Returns a dict version of the stopper which can be saved as JSON.
Replaces currently observed objective by the maximum objective observed from the start.
Attributes
Last observed objective.
Returns copy of the list of observations with 0-index budgets and 1-index objectives.
Last observed step.
- property objective#
Last observed objective.
- property observations: list#
Returns copy of the list of observations with 0-index budgets and 1-index objectives.
- property step#
Last observed step.
- stop() bool[source]#
Returns
Trueif the evaluation should be stopped andFalseotherwise.- Returns:
(step >= max_steps).- Return type:
- to_json()#
Returns a dict version of the stopper which can be saved as JSON.