Ridge regression of data with time delays.
int
| float
The starting lag, in seconds (or samples if sfreq
== 1).
Negative values correspond to times in the past.
int
| float
The ending lag, in seconds (or samples if sfreq
== 1).
Positive values correspond to times in the future.
Must be >= tmin.
float
The sampling frequency used to convert times into samples.
float
The ridge (or laplacian) regularization factor.
str
| list
Can be “ridge” (default) or “laplacian”. Can also be a 2-element list specifying how to regularize in time and across adjacent features.
If True (default), the sample mean is removed before fitting.
int
| str
The number of jobs to use. Can be an int (default 1) or 'cuda'
.
New in version 0.18.
If True (default), correct the autocorrelation coefficients for
non-zero delays for the fact that fewer samples are available.
Disabling this speeds up performance at the cost of accuracy
depending on the relationship between epoch length and model
duration. Only used if estimator
is float or None.
New in version 0.18.
See also
Notes
This class is meant to be used with mne.decoding.ReceptiveField
by only implicitly doing the time delaying. For reasonable receptive
field and input signal sizes, it should be more CPU and memory
efficient by using frequency-domain methods (FFTs) to compute the
auto- and cross-correlations.
Methods
|
Estimate the coefficients of the linear model. |
|
Get parameters for this estimator. |
|
Predict the output. |
|
Set the parameters of this estimator. |
Estimate the coefficients of the linear model.
TimeDelayingRidge
Returns the modified instance.
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.
dict
Parameters.
The object.
mne.decoding.TimeDelayingRidge
#Spectro-temporal receptive field (STRF) estimation on continuous data