def METHOD_NAME(self, fh=None, X=None):
    if self.ensemble_algorithm is not None:
        self.weights = self.ensemble_algorithm.weights
    return (pd.concat(self._predict_forecasters(fh, X), axis=1) * self.weights).sum(
        axis=1
    )