eelbrain.ChannelModel.fit
- ChannelModel.fit(data, threshold=5e-05)[source]
Fit the model.
- Parameters:
data (NDVar | str | list) – EEG data with
sensorandtimedimensions ([case x] sensor x time). All non-sensor dimensions are flattened into regression samples. Alist(orDatalist) of long, variable-length epochs (eachsensor x time, e.g.mne.Epochsor NDVar) is also accepted; each is treated like continuous data and all are concatenated.threshold (float) – Exclude data in which any channel exceeds this absolute value (default 50 µV). In epoched data (with a
casedimension) the whole epoch is excluded; in continuous and long-epoch data the ±250 ms around each exceeding time point is excluded. Set toNoneto disable.
- Returns:
model – The model itself, to allow chaining.
- Return type: