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 |
|---|---|---|---|
|
Pandas DataFrame |
— |
The first set of events considered Gold Standard |
|
String |
— |
Label of the first set of events |
|
Pandas DataFrame |
— |
The second set of events considered estimation |
|
String |
— |
Label of the second set of events |
|
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.
|
|
String |
— |
Channel label to filter events1 (select events only from that channel) |
|
String |
— |
Channel label to filter events2 (select events only from that channel) |
|
float |
0.2 |
Jaccord index threshold (similarity between events to be valid). |
|
String (optional) |
— |
Filename to save performance evaluation |
|
string (optional) |
— |
Label to add to the column when mutiple comparisons are made. |
Outputs
Output |
Format |
Description |
|---|---|---|
|
Pandas DataFrame |
True positive events |
|
Pandas DataFrame |
False Events |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Event Compare under the Events Utilities category.
Drag the module onto the process canvas.
Connect the required inputs from upstream modules (or set values in the Settings tab).
Connect outputs to downstream modules as needed.
Double-click the module to configure parameters in the Settings tab.
Run the process and inspect results in the Results tab.
Note
For general guidance on building processes with modules, see Explore examples.