Illustration of a signal trace and detected event intervals for EventScore Explorer

Using EventScore Explorer: inspect misses and false alarms behind the score


Table of contents of this article

When an evaluation score rises, did the predictions improve or did the rule change? A number alone cannot show that. EventScore Explorer connects time-series event matches to the score they produce.

Change the tolerance, not the predictions

Change Endpoint tolerance (seconds) in the live demo from 0 to 0.5. With four truth events and five predictions, matches rise from two to three, false alarms fall from three to two, and misses fall from two to one. The predictions stay fixed; the allowed interval gap changes.

The hosted demo is a report built from synthetic data, not an interface for uploading your files.

Open the live demo

Step 1: Check Python

The steps below run the synthetic sample in macOS Terminal. You need Python 3.10 or later and an internet connection. Start with this command.

python3 --version

If a version such as Python 3.14.0 appears and it is at least 3.10, continue. If Python is missing or older, install a supported version from the official Python website and reopen Terminal. The exact version varies by environment.

Python

Step 2: Download the sample and enter its folder

Download the ZIP below and double-click it in Finder’s Downloads folder to extract it. pip installs the command; the ZIP supplies the practice files.

ZIP with practice files

With the default download location and extracted folder name, run the following. If you saved it elsewhere, replace the path with that folder.

cd ~/Downloads/eventscore-explorer-main

No output means the directory change succeeded. Next, check that the input files are present.

ls examples

You are ready when the list includes truth.csv and predictions.csv. If you see “No such file or directory”, check the extraction location and folder name, then repeat this step.

Step 3: Create an environment and install with pip

Create a virtual environment in the folder you just entered.

python3 -m venv .venv

If the prompt returns without output, creation succeeded. Now activate the environment.

source .venv/bin/activate

The prompt usually starts with (.venv). Keep this Terminal open and run the next command.

python -m pip install eventscore-explorer==0.1.0

The first install prints “Successfully installed”. These steps pin version 0.1.0, which was used for verification. Confirm that the next command displays usage information.

eventscore --help

PyPI · GitHub

The blocks below contain commands to enter. Do not paste explanatory text or output into the terminal.

Step 4: Generate a report from the sample

Run the following once in the same Terminal. Copy the entire command as one line.

eventscore examples/truth.csv examples/predictions.csv --tolerances 0,0.5,1,2 --output reports/events.html --json reports/events.json

Report: reports/events.html confirms generation. Open that HTML in your browser and switch tolerances. The JSON records matches and counts for each setting.

This is an excerpt of the output, not a command to enter.

Report: reports/events.html

Step 5: Open the HTML and check the result

On macOS, this command opens the generated HTML in your default browser. You can also double-click the file in Finder.

open reports/events.html

The screenshots below were captured while operating the public demo in Chrome using the same synthetic sample as this tutorial. Click an image to view it at full size.

At tolerance 0: 2 matches, 3 false alarms and 2 misses

1. Check that the selector at the top is 0. Read Matched, False alarms and Missed from left to right: 2, 3 and 2.

After selecting 0.5: 3 matches, 2 false alarms and 1 miss

2. Change the same selector to 0.5. Without reloading, the counts change to 3, 2 and 1. Comparing these two states confirms the interaction worked.

The counts change because the gap between T2 ending at 35 and P2 starting at 35.5 is now allowed. The predictions themselves have not changed.

Troubleshooting and trying your own data

For “command not found”, return to the Step 2 folder and activate the Step 3 environment. For missing input files, check the Step 2 listing again. If output files already exist, use new output filenames before rerunning.

For your own data, replace the input paths in Step 4. First read the README’s input format and constraints, and work with copies of your originals. The basic tutorial is complete once you have checked the result in Step 5.

Using Windows or Linux

The commands above were verified on macOS. On Windows use py -3 to launch Python and dir to list files. After entering your actual download folder, use the PowerShell activation command below. If an organizational execution policy blocks it, consult your administrator without changing that policy.

py -3 -m venv .venv
.venv\Scripts\Activate.ps1

pip and tool commands are the same. Open the HTML using File Explorer. On Linux use the macOS commands above, replacing open with xdg-open, or use your file manager. These steps have not been tested on Windows or Linux.

Capabilities and limits

Each truth event matches at most one prediction, maximizing the number of matches. At zero tolerance, touching endpoints do not match. Tolerance applies to the gap between intervals, not only onset times, and events across different labels or recordings never match.

With multiple candidates, equally sized matchings can have different pairs and onset offsets. This is not a disease-specific standard, and it does not compute false alarms per hour. The prototype allows up to 2,000 events per CSV.

The counts and outputs in this article are based on Codex verification with synthetic samples. They do not establish effectiveness on real data or validation by real users.

Follow the source and updates

README and instructions · Report an issue · GitHub profile

Back to the three-tool overview · Receive updates via RSS