mne.decoding.
Scaler
(info=None, scalings=None, with_mean=True, with_std=True)[source]¶Standardize channel data.
This class scales data for each channel. It differs from scikit-learn
classes (e.g., sklearn.preprocessing.StandardScaler
) in that
it scales each channel by estimating μ and σ using data from all
time points and epochs, as opposed to standardizing each feature
(i.e., each time point for each channel) by estimating using μ and σ
using data from all epochs.
Parameters: |
|
---|
Methods
__hash__ ($self, /) |
Return hash(self). |
fit (epochs_data[, y]) |
Standardize data across channels. |
fit_transform (epochs_data[, y]) |
Fit to data, then transform it. |
get_params ([deep]) |
Get parameters for this estimator. |
inverse_transform (epochs_data) |
Invert standardization of data across channels. |
set_params (**params) |
Set the parameters of this estimator. |
transform (epochs_data) |
Standardize data across channels. |
__hash__
($self, /)¶Return hash(self).
fit
(epochs_data, y=None)[source]¶Standardize data across channels.
Parameters: |
|
---|---|
Returns: |
|
fit_transform
(epochs_data, y=None)[source]¶Fit to data, then transform it.
Fits transformer to epochs_data and y and returns a transformed version of epochs_data.
Parameters: |
|
---|---|
Returns: |
|
Notes
This function makes a copy of the data before the operations and the memory usage may be large with big data.
get_params
(deep=True)[source]¶Get parameters for this estimator.
Parameters: |
|
---|---|
Returns: |
|
inverse_transform
(epochs_data)[source]¶Invert standardization of data across channels.
Parameters: |
|
---|---|
Returns: |
|
Notes
This function makes a copy of the data before the operations and the memory usage may be large with big data.
set_params
(**params)[source]¶Set the parameters of this estimator.
The method works on simple estimators as well as on nested objects
(such as pipelines). The latter have parameters of the form
<component>__<parameter>
so that it’s possible to update each
component of a nested object.
Returns
——-
self
transform
(epochs_data)[source]¶Standardize data across channels.
Parameters: |
|
---|---|
Returns: |
|
Notes
This function makes a copy of the data before the operations and the memory usage may be large with big data.