Event Compare

Module name: EventCompare

Package: CEAMSModules 7.4.0

Version: 2.0.0

Overview

Compare two sets of events (1:gold standard events, 2:estimated events). The class computes the performance by sample and the performance by event.

Inputs

Input

Format

Default

Description

events1

Pandas DataFrame

The first set of events considered Gold Standard

event1_name

String

Label of the first set of events

events2

Pandas DataFrame

The second set of events considered estimation

event2_name

String

Label of the second set of events

events_valid_window

Pandas DataFrame

The valid temporal window to expect events1 or events2. Useful to compute the True Negative.
i.e. the selected epochs from NREM sleep stage or R sleep stage.

channel1_name

String

Channel label to filter events1 (select events only from that channel)

channel2_name

String

Channel label to filter events2 (select events only from that channel)

jaccord_thresh

float

0.2

Jaccord index threshold (similarity between events to be valid).

filename

String (optional)

Filename to save performance evaluation

label

string (optional)

Label to add to the column when mutiple comparisons are made.

Outputs

Output

Format

Description

TP_events

Pandas DataFrame

True positive events

FNFP_events

Pandas DataFrame

False Events

Usage in a process

  1. Open Dev Tools -> New process in Snooz.

  2. In the Module Library, find Event Compare under the Events Utilities category.

  3. Drag the module onto the process canvas.

  4. Connect the required inputs from upstream modules (or set values in the Settings tab).

  5. Connect outputs to downstream modules as needed.

  6. Double-click the module to configure parameters in the Settings tab.

  7. Run the process and inspect results in the Results tab.

Note

For general guidance on building processes with modules, see Explore examples.