trftools.pipeline.TRFExperiment.load_predictor

TRFExperiment.load_predictor(code, tstep=None, n_samples=None, tmin=None, filter_x=False, name=None, **state)

Load predictor NDVar

Parameters:
  • code (str) – Code for the predictor to load (using the pattern {stimulus}~{code}${randomization})

  • tstep (float) – Time-step for the predictor (for NDVar predictors, the default is the original tstep; for Dataset predictors tstep needs to be specified).

  • n_samples (int) – Number of samples in the predictor (the default returns all available samples).

  • tmin (float) – First sample time stamp (default is all abailable data).

  • filter_x (Literal[True, False, 'continuous']) – Filter predictors with the same filter as the M/EEG data. filter_x=True to filter all predictors; filter_x=False filter_x='continuous' to filter time-continuous predictors, but not discrete predictors (see FilePredictor sampling parameter).

  • name (str) – Reassign the name of the predictor NDVar.

See also

load_predictors

load multiple predictors simultaneously