deephyper.ensemble.aggregator.Aggregator

deephyper.ensemble.aggregator.Aggregator#

class deephyper.ensemble.aggregator.Aggregator[source]#

Bases: ABC

Base class that represents an aggregation function of a set of predictors.

Methods

aggregate

Aggregate the predictions from different predictors.

abstract aggregate(y: List, weights: List = None)[source]#

Aggregate the predictions from different predictors.

Parameters:
  • y (List) – List of predictions from different models. It should be of shape (n_predictors, ...).

  • weights (list, optional) – Weights of the predictors. Default is None.

Returns:

Aggregated predictions.

Return type:

Any