Skip to content

Abstract multi objective algorithm

smac.multi_objective.abstract_multi_objective_algorithm #

AbstractMultiObjectiveAlgorithm #

AbstractMultiObjectiveAlgorithm()

Bases: ABC

A general interface for multi-objective optimizer, depending on different strategies.

Source code in smac/multi_objective/abstract_multi_objective_algorithm.py
def __init__(self) -> None:
    pass

meta property #

meta: dict[str, Any]

Returns the meta data of the created object.

__call__ abstractmethod #

__call__(values: list[float]) -> float

Transform a multi-objective loss to a single loss.

Parameters#

values : list[float] Normalized values in the range [0, 1].

Returns#

cost : float Combined cost.

Source code in smac/multi_objective/abstract_multi_objective_algorithm.py
@abstractmethod
def __call__(self, values: list[float]) -> float:
    """Transform a multi-objective loss to a single loss.

    Parameters
    ----------
    values : list[float]
        Normalized values in the range [0, 1].

    Returns
    -------
    cost : float
        Combined cost.
    """
    raise NotImplementedError

update_on_iteration_start #

update_on_iteration_start() -> None

Update the internal state on start of each SMBO iteration.

Source code in smac/multi_objective/abstract_multi_objective_algorithm.py
def update_on_iteration_start(self) -> None:
    """Update the internal state on start of each SMBO iteration."""
    pass