EventScore Explorer
Explain why time-series events match — and why the score changes.
A small, dependency-free Python toolkit that turns truth and prediction intervals into an interactive HTML report. Inspect one-to-one matches, misses, false alarms, and signed onset offsets. Switch endpoint tolerances without a server.
実際にどのイベントが対応したかを説明する、時系列評価ツールです。許容時間を切り替えてスコアの変化を確認できます。
Install from PyPI / pipでインストール
Python 3.10 or later. Create and activate a virtual environment first:
python3 -m venv .venv
macOS / Linux: source .venv/bin/activate
Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install eventscore-explorer
eventscore --help
The help screen confirms that the command is available. Install only the tools you need. PyPI package · Source and examples
サンプルCSV・Notebookなどはpipでは配置されません。公開デモはブラウザで開けます。自分でサンプルを実行する場合はGitHubの「Code → Download ZIP」で取得・展開し、READMEの相対パスをそのフォルダー内から指定してください。
Article & live demo / 紹介記事と公開デモ
- 個別ガイド / EventScore Explorer:時系列の見逃し・誤検出を確かめる
- 紹介記事:データを分ける・評価する・公開する。Pythonの小さな確認ツールを3つ作りました — Japanese overview of SplitTrace, EventScore Explorer, and Notebook Publish Check.
- 公開デモをブラウザで開く / Open the live demo — Synthetic data only; no installation required.
公開デモは合成データの出力例です。自分のファイルをアップロードする画面ではありません。 The hosted demo is a sample report, not a file-upload service.
Try the demo
Open examples/demo.html in a browser after downloading the repository. All data is synthetic. At 0 seconds the demo has 2 matches, 3 false alarms and 2 misses. At 0.5 seconds it has 3 matches, 2 false alarms and 1 miss.
python3 -m venv .venv
. .venv/bin/activate
python -m pip install .
eventscore examples/truth.csv examples/predictions.csv --tolerances 0,0.5,1,2 --output reports/events.html --json reports/events.json
Without installing: prefix the same arguments with PYTHONPATH=src python3 -m eventscore_explorer instead of eventscore.
Python 3.10+. Runtime has no third-party dependencies.
Input
Each CSV requires id,start,end; optional label,recording default to event,default. IDs must be unique within each input. Times are finite seconds with 0 <= start < end. The two files must use the same time origin within each recording. Multiple recordings and labels are never matched across boundaries.
id,start,end,label,recording
T1,10,15,event,recording-1
Exact scoring policy
- Intervals are half-open. At tolerance 0, only positive-duration overlap qualifies.
- At positive tolerance, disjoint or touching intervals qualify when their endpoint gap is at most that tolerance. This is not an onset-only collar.
- One truth and one prediction per match; maximum-cardinality bipartite matching maximizes matched count. Sorted traversal is deterministic; it does not optimize overlap or latency. Ambiguous matches are flagged.
- Precision = matches / predictions; recall = matches / truth; F1 = 2 × matches / (truth + predictions). Undefined denominators are reported as
null/ N/A. - Onset offset = prediction start − truth start. Negative means early; it is not clipped into a positive detection delay.
- No prediction merging, point adjustment, label weighting, true-negative metrics or clinical scoring is applied. Recording duration is not supplied, so false alarms/hour is not computed.
Use the Python API: from eventscore_explorer.core import Event, evaluate.
Scope and limits
Experimental 0.1. Input is capped at 2,000 events per file; matching can be expensive on dense graphs. Every requested tolerance is precomputed. Reports contain event IDs and times: review before publishing. Report files are never overwritten, and input CSVs cannot be output targets.
This tool complements TimeEval and affiliation metrics. It does not implement those metrics or claim equivalence. Its focus is explaining a simple, explicit matching policy.
Development
PYTHONPATH=src python3 -m unittest discover -s tests -v
Tests cover non-greedy matching, endpoint rules, duplicate alarms, recording/label isolation, empty inputs, determinism, validation and safe HTML data embedding.
MIT licensed. Synthetic examples only; not a validated clinical evaluation standard.
Metadata
Release files for eventscore-explorer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eventscore_explorer-0.1.0.tar.gz | 16.3 kB | With provenance | Details for eventscore_explorer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eventscore_explorer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for eventscore_explorer-0.1.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / eventscore_explorer-0.1.0.tar.gz
| Download URL | eventscore_explorer-0.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db1e5085ce845617001067ab34b0ae0ac576132bc85ca8df48c5735c9e610b73
|
|
BLAKE2b-256 checksum How to use checksums |
99a274c263acc32a8d54100c63963dbe11dbd247def1601a5e40eedec8db0130
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / eventscore_explorer-0.1.0-py3-none-any.whl
| Download URL | eventscore_explorer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9537e3192505725bc315052500651756b8afcc9a5207959b5a124fd6e35ff4f7
|
|
BLAKE2b-256 checksum How to use checksums |
2953605a00a2615a00665eea7066035d7dbd9d400760d037777ad08f27759137
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for eventscore-explorer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eventscore_explorer-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.