Skip to content

Optimizers


Defines the optimization goal.

__init__(
metric: 'Union[str, List[str]]',
direction: 'Union[str, List[str]]'
) → None

The abstract base class for all optimization strategies.

__init__(objective: 'Objective')

ask() → list[Treatment]

Suggest one or more Treatments for the next trial.


get_best_treatment() → Treatment

Return the best treatment found after all trials.


tell(objective_values: 'dict[str, float]') → None

Provide the aggregated objective value(s) for the last trial.