def METHOD_NAME(self, X):
    """Transform the data by the spatial filters.
    Parameters
    ----------
    X : array, shape (n_epochs, n_channels, n_times)
        The input data.
    Returns
    -------
    X : array, shape (n_epochs, n_times)
        The input data transformed by the spatial filters.
    """
    Xt = np.sum(X * self.filters_, axis=1)
    return Xt