def filter(self, series: TimeSeries) -> TimeSeries:
        """Filters a given series

        Parameters
        ----------
        series
            The series to filter.

        Returns
        -------
        TimeSeries
            A time series containing the filtered values.
        """
        raise_if_not(
            series.is_deterministic,
            "The input series must be deterministic (observations).",
        )
Filters a given series

        Parameters
        ----------
        series
            The series to filter.

        Returns
        -------
        TimeSeries
            A time series containing the filtered values.
        
darts/models/filtering/filtering_model.py