piglot.objective.Scalarisation
- class Scalarisation(objectives: List[IndividualObjective])[source]
Bases:
ABCBase class for scalarisations.
Methods
Scalarise a set of objectives.
Scalarise a set of objectives with gradients.
- scalarise(values: ndarray, variances: ndarray | None = None) Tuple[float, float | None][source]
Scalarise a set of objectives.
Parameters
- valuesnp.ndarray
Mean objective values.
- variancesOptional[np.ndarray]
Optional variances of the objectives.
Returns
- Tuple[float, Optional[float]]
Mean and variance of the scalarised objective.
- abstract scalarise_torch(values: Tensor, variances: Tensor | None = None) Tuple[Tensor, Tensor | None][source]
Scalarise a set of objectives with gradients.
Parameters
- valuestorch.Tensor
Mean objective values.
- variancesOptional[torch.Tensor]
Optional variances of the objectives.
Returns
- Tuple[torch.Tensor, Optional[torch.Tensor]]
Mean and variance of the scalarised objective.