def encoding_n_components(self) -> tuple[int, int]:
        """Returns the number of components generated by `SequentialEncoder.past_encoders` and
        `SequentialEncoder.future_encoders`.
        """
        # by default, _[past/future]_encoders are empty lists
        past_enc_n_compoments = sum(
            past_enc.encoding_n_components for past_enc in self.past_encoders
        )
        future_enc_n_compoments = sum(
            future_enc.encoding_n_components for future_enc in self.future_encoders
        )
        return past_enc_n_compoments, future_enc_n_compoments
Returns the number of components generated by `SequentialEncoder.past_encoders` and
        `SequentialEncoder.future_encoders`.
        
darts/dataprocessing/encoders/encoders.py