eelbrain.ChannelModel.fit

ChannelModel.fit(data, threshold=5e-05)[source]

Fit the model.

Parameters:
  • data (NDVar | str | list) – EEG data with sensor and time dimensions ([case x] sensor x time). All non-sensor dimensions are flattened into regression samples. A list (or Datalist) of long, variable-length epochs (each sensor x time, e.g. mne.Epochs or 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 case dimension) the whole epoch is excluded; in continuous and long-epoch data the ±250 ms around each exceeding time point is excluded. Set to None to disable.

Returns:

model – The model itself, to allow chaining.

Return type:

ChannelModel