baybe.objective.Objective

baybe.objective.Objective(mode: Literal['SINGLE', 'DESIRABILITY'], targets: list[Target], weights: list[float] | None = None, combine_func: Literal['MEAN', 'GEOM_MEAN'] | None = None)[source]

Return the appropriate new-style class depending on the mode.