neuralset.extractors.base.EventDetector

class neuralset.extractors.base.EventDetector(*, event_types: str = 'Event', aggregation: Literal['sum'] = 'sum', allow_missing: bool = True, frequency: float = 100.0, mode: Literal['dense', 'start', 'duration', 'center'] = 'dense')[source][source]

Extracts time-aligned extractors from event annotations.

Parameters:
  • event_types (str) – the event type to detect (e.g., “Keystroke”).

  • frequency (float) – sampling frequency in Hz.

  • mode (str) – mode of labeling (“dense”, “start”, “center”, “duration”).

  • allow_missing (bool) – if True, missing events are allowed without raising errors.