'Fit to data, then transform it.
Fits transformer to epochs_data and y and returns a transformed version
of epochs_data.
Parameters
epochs_data : array, shape (n_epochs, n_channels, n_times)
The data.
y : None | array, shape (n_epochs,)
The label for each epoch.
Defaults to None.
Returns
X : array, shape (n_epochs, n_channels, n_times)
The data concatenated over channels.
Notes
This function makes a copy of the data before the operations and the
memory usage may be large with big data.'

def fit_transform(self, epochs_data, y=None):

    return self.fit(epochs_data, y).transform(epochs_data)
