smac.model.multi_objective_model

Classes

MultiObjectiveModel(models, objectives[, seed])

Wrapper for the surrogate model to predict multiple objectives.

Interfaces

class smac.model.multi_objective_model.MultiObjectiveModel(models, objectives, seed=0)[source]

Bases: AbstractModel

Wrapper for the surrogate model to predict multiple objectives.

Parameters:
  • models (AbstractModel | list[AbstractModel]) – Which model should be used. If it is a list, then it must provide as many models as objectives. If it is a single model only, the model is used for all objectives.

  • objectives (list[str]) – Which objectives should be used.

  • seed (int) –

property models: list[smac.model.abstract_model.AbstractModel]

The internally used surrogate models.

Return type:

list[AbstractModel]

predict_marginalized(X)[source]

Predicts mean and variance marginalized over all instances.

Warning

The input data must not include any features.

Parameters:

X (np.ndarray [#samples, #hyperparameter]) – Input data points.

Return type:

tuple[ndarray, ndarray]

Returns:

  • means (np.ndarray [#samples, 1]) – The predictive mean.

  • vars (np.ndarray [#samples, 1]) – The predictive variance.