'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.'

def transform(self, X):

    Xt = np.sum((X * self.filters_), axis=1)
    return Xt
