pnpl.tasks.schoffelen2019.TrialEpoching

pnpl.tasks.schoffelen2019.TrialEpoching#

class pnpl.tasks.schoffelen2019.TrialEpoching(tmin=0.0, tmax=1.0, label_type='trigger', include_tasks=None, _classes_sorted=<factory>, _label_to_id=<factory>)[source]#

Trial-onset epoching with a UPPT001 trigger-code label.

Parameters:
  • tmin (float) – Start time relative to trial onset (seconds).

  • tmax (float) – End time relative to trial onset (seconds).

  • label_type (str) – "trigger" to label each trial with its first UPPT001 code, or "binary" for a constant label of 1.

  • include_tasks (list | None) – Restrict to a subset of MOUS tasks ("auditory", "visual", "rest"); None keeps whatever the dataset provides.

  • _classes_sorted (list)

  • _label_to_id (dict)

__init__(tmin=0.0, tmax=1.0, label_type='trigger', include_tasks=None, _classes_sorted=<factory>, _label_to_id=<factory>)#
Parameters:
  • tmin (float)

  • tmax (float)

  • label_type (str)

  • include_tasks (list | None)

  • _classes_sorted (list)

  • _label_to_id (dict)

Return type:

None

Methods

__init__([tmin, tmax, label_type, ...])

collect_samples(dataset)

get_label(sample)

Attributes

include_tasks

label_info

label_type

tmax

tmin