def __init__(self, model: BaseEnsemble) -> None:
        """Ensemble scikit-learn aggregator

        Aggregator wrapped around the sklearn ensemble model `sklearn ensemble model
        <https://scikit-learn.org/stable/modules/ensemble.html>`_.

        Parameters
        ----------
        model
            The sklearn ensemble model.
        """
        raise_if_not(
            isinstance(model, BaseEnsemble),
            f"Scorer is expecting a model of type BaseEnsemble (from sklearn ensemble), \
            found type {type(model)}.",
        )

        self.model = model
        super().__init__()
Ensemble scikit-learn aggregator

        Aggregator wrapped around the sklearn ensemble model `sklearn ensemble model
        <https://scikit-learn.org/stable/modules/ensemble.html>`_.

        Parameters
        ----------
        model
            The sklearn ensemble model.
        
darts/ad/aggregators/ensemble_sklearn_aggregator.py