def test_ensemble_aggregator_single_series(self, config):
        """Check performance of ensemble aggregator on single series cases"""
        series, pred_series, expected_metrics = config

        aggregator = EnsembleSklearnAggregator(
            model=GradientBoostingClassifier(
                n_estimators=50, learning_rate=1.0, max_depth=1
            )
        )

        aggregator.fit(series, pred_series)

        self.helper_eval_metric_single_series(
            aggregator=aggregator,
            series=series,
            pred_series=pred_series,
            expected_vals=expected_metrics,
        )

        assert (
            aggregator.predict(pred_series).sum(axis=0).all_values().flatten()[0]
            == expected_metrics["total"]
        )
Check performance of ensemble aggregator on single series cases
darts/tests/ad/test_aggregators.py