braindecode.preprocessing.InterpolateTo#
- class braindecode.preprocessing.InterpolateTo(sensors, origin='auto', method='spline', reg=0.0)[source]#
Braindecode preprocessor wrapper for
interpolate_to().Interpolate EEG data onto a new montage.
Warning
Be careful, only EEG channels are interpolated. Other channel types are not interpolated.
- Parameters:
- sensorsDigMontage
The target montage containing channel positions to interpolate onto.
- originarray-like, shape (3,) | str
Origin of the sphere in the head coordinate frame and in meters. Can be
'auto'(default), which means a head-digitization-based origin fit.- methodstr
Method to use for EEG channels. Supported methods are ‘spline’ (default) and ‘MNE’.
- regfloat
The regularization parameter for the interpolation method (only used when the method is ‘spline’).
- Returns:
- instinstance of Raw, Epochs, or Evoked
The instance with updated channel locations and data.
Notes
This method is useful for standardizing EEG layouts across datasets. However, some attributes may be lost after interpolation.
Added in version 1.10.0.