Illustration of a toolbox with cards for data splitting, evaluation and notebook checks

Split, evaluate, publish: three small Python tools for checking your work


Do what you can first.

Compare three tools for split auditing, evaluation and notebook publication through synthetic demos.

For people analyzing data or building machine-learning models in Python. Start with the browser reports, then visit GitHub if a tool fits your needs.

Table of contents of this article

Are training and test data really separate? Which changed prediction match explains a different score? When publishing a notebook, can you keep the figures and remove unwanted logs?

I have published three Python tools on GitHub to help with these checks: SplitTrace for auditing splits, EventScore Explorer for inspecting evaluation, and Notebook Publish Check for publication review. These are early versions under the MIT license. Start with the synthetic demos to see whether they fit your workflow.

Choose the problem you want to inspect

All demos in this article use synthetic data, without patient data or real credentials. These are browser-viewable reports, so you do not need Python for an initial look. They are not interfaces for uploading your files.

SplitTrace: different files may share the same source

Suppose you turn a waveform interval into an image and then create derived samples. Even with different filenames, placing derivatives of the same source in training and test sets can lead to a misleading evaluation.

SplitTrace reads metadata such as sample IDs, parent IDs, subject IDs and intervals to audit existing splits. Its central feature is tracing source relationships and showing the path behind a finding.

In the included sample, these two paths reach the same source sample.

学習側 a → image-01 → epoch-01
テスト側 b → epoch-01

Open the SplitTrace sample report

Missing information should not be treated as a clean result. If parent relationships or required metadata are missing, the report shows limits in its coverage. This tool checks declared relationships and policies; it does not infer provenance from waveforms or images.

SplitTrace README and execution instructions

EventScore Explorer: inspect the matches behind the score

In time-series detection, a prediction may arrive shortly after the true event. Whether that counts as a match changes the score.

EventScore Explorer accepts truth and prediction intervals in CSV and creates an HTML report of matches, misses and false alarms. Switch tolerances to compare the matching events and scores.

Open the EventScore Explorer synthetic demo

At the top of the demo, change Endpoint tolerance (seconds) from 0 to 0.5.

The demo has four truth events and five predictions. With zero tolerance, there are two matches, three false alarms and two misses. At 0.5 seconds, there are three matches, two false alarms and one miss. The predictions stay the same; the evaluation rule changes the result.

Each truth event can match only one prediction, and the algorithm maximizes the number of matches. Tolerance applies to the gap between intervals. At zero seconds, touching endpoints do not count as overlap. This is a tool for inspecting an explicit policy, not a standard evaluation protocol for a particular subject group or disease.

EventScore Explorer README and CSV format

Notebook Publish Check: keep figures and remove unwanted output

Notebooks store outputs and metadata as well as code. You may want to keep a figure while reviewing long logs and local file paths before sharing. This tool provides a review screen for that task.

Notebook Publish Check reads a notebook without executing its code and lists credential-like strings, absolute paths and large outputs by cell. Review the figures, choose outputs or metadata to remove, and save a separate notebook copy.

Open the Notebook Publish Check synthetic demo

In cell 3, select Remove all outputs and execution count from this cell. Leave cell 2 unselected, then use Download selected copy (.ipynb) at the top. The image in cell 2 is a tiny synthetic display sample. Cell 4 intentionally includes a fake password string in its source code to demonstrate that removing output does not remove strings from source code.

Check the downloaded copy again to confirm that the selected outputs are gone. Source code and attachments remain, so edit them separately where needed.

The review HTML contains the original notebook. Do not publish reports generated from your own notebooks without reviewing them. Detection uses limited patterns; it does not OCR images or detect every kind of personal information.

Notebook Publish Check README and instructions

Tool-specific installation and usage guides

Installation and sample execution steps now have dedicated articles for each tool. All three require Python 3.10 or later and can be installed from PyPI with pip. Choose the one you need.

Developing the tools within their tested limits

All three are early versions, with real-user validation still ahead. The paths and counts shown here were checked by Codex during development using synthetic samples and automated tests. This does not demonstrate effectiveness on large datasets or in real research or business workflows.

If a tool looks useful, start with its GitHub README. Report usability issues or reproducible bugs with a small example containing no personal information. To follow development, visit the GitHub profile and follow the account.

If you would like to start by running a small Python tool, try the article on finding duplicate files without deleting them. You can also subscribe to article updates through RSS.