class_docstr: 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
class_docstr_tok: ["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"]
code: def __init__(
      self,
      models: AbstractModel | list[AbstractModel],
      objectives: list[str],
      seed: int = 0,
  ) -> None:
      self._n_objectives = len(objectives)
      if isinstance(models, list):
          assert len(models) == len(objectives)
  
          # Make sure the configspace is the same
          configspace = models[0]._configspace
          for m in models:
              assert configspace == m._configspace
  
          self._models = models
      else:
          configspace = models._configspace
          self._models = [models for _ in range(self._n_objectives)]
  
      super().__init__(
          configspace=configspace,
          instance_features=None,
          pca_components=None,
          seed=seed,
      )
  
file_path: SMAC3/smac/model/multi_objective_model.py
imports: from __future__ import annotations
  from typing import TypeVar
  import numpy
  from smac.model.abstract_model import AbstractModel
label_desc: Use image node_id 1 to create a new MultiObjectiveModel object from inherited base classes: AbstractModel with example: obj = MultiObjectiveModel(models, objectives, seed)