def score(self, X, y, sample_weight=None):
        """
        Return the mean accuracy on the given test data and labels.

        Parameters
        ----------
        X : array-like, shape = (n_samples, n_features, n_timestamps)
            Multivariate time series.

        y : array-like, shape = (n_samples,)
            True labels for `X`.

        sample_weight : None or array-like, shape = (n_samples,) (default = None)
            Sample weights.

        Returns
        -------
        score : float
            Mean accuracy of ``self.predict(X)`` with regards to `y`.

        """  # noqa: E501
        return accuracy_score(y, self.predict(X), sample_weight=sample_weight)

        Return the mean accuracy on the given test data and labels.

        Parameters
        ----------
        X : array-like, shape = (n_samples, n_features, n_timestamps)
            Multivariate time series.

        y : array-like, shape = (n_samples,)
            True labels for `X`.

        sample_weight : None or array-like, shape = (n_samples,) (default = None)
            Sample weights.

        Returns
        -------
        score : float
            Mean accuracy of ``self.predict(X)`` with regards to `y`.

        
pyts/base.py