deephyper.ensemble.aggregator.MixedNormalAggregator#
- class deephyper.ensemble.aggregator.MixedNormalAggregator(decomposed_scale: bool = False)[source]#
Bases:
Aggregator
Aggregate a collection of predictions, each representing a normal distribution.
This aggregator combines the mean (loc) and standard deviation (scale) of multiple normal distributions into a single mixture distribution.
Eventhough the mixture of normal distributions is not a normal distribution, this aggregator approximates it as a normal and only returns the mean and standard deviation of the mixture.
Array (Fixed Set)
MaskedArray
✅
❌
- Parameters:
decomposed_scale (bool, optional) – If
True
, the scale of the mixture distribution is decomposed into aleatoric and epistemic components. Default isFalse
.
Methods
Aggregate the predictions.
- aggregate(y: List[Dict[str, ndarray]], weights: List[float] | None = None) Dict[str, ndarray] [source]#
Aggregate the predictions.
- Parameters:
- Returns:
- Aggregated predictions with:
loc: Mean of the mixture distribution.
- scale: Standard deviation (or decomposed components if decomposed_scale is
True).
- Return type:
Dict[str, np.ndarray]