Illustration of tracing shared data origins between training and test sets with SplitTrace

Using SplitTrace: trace shared sources across training and test splits


Table of contents of this article

Do different filenames mean independent data? An image derived from a waveform interval and a transformed copy still share their source. SplitTrace helps inspect these relationships around training and test splits.

Trace the source to see the connection

In the sample, training sample a reaches epoch-01 through image-01, while test sample b reaches the same epoch-01. SplitTrace follows declared parent IDs rather than reading images or waveforms, and reports the path behind the finding.

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/splittrace-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 derived-samples.json and derived-assignments.json. 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 splittrace==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.

splittrace --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.

splittrace examples/derived-samples.json examples/derived-assignments.json --policy cross_subject --lineage-complete --output pypi-audit.json --html pypi-audit.html

This sample deliberately contains leakage, so FAIL and exit code 1 are expected. Open pypi-audit.html in your browser to inspect how a and b connect through epoch-01.

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

"status": "FAIL"

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 pypi-audit.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.

SplitTrace FAIL result and check statuses

First check “SplitTrace: FAIL” at the top. lineage is FAIL, while subject and interval are UNKNOWN. Do not interpret UNKNOWN as a clean result.

Find FAIL and the path showing that a and b share epoch-01. Completion means you can match the report to a → image-01 → epoch-01 and b → epoch-01 in the input. UNKNOWN means a check lacked information, not PASS.

Ancestor and left/right paths in findings

Scroll down to findings. ancestor is epoch-01, and both left_path and right_path end at epoch-01. This shows that separate samples a and b share the same source.

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

UNKNOWN means a check lacks required information. A FAIL does not mean every other check is complete.--lineage-completeshould only be used when you have verified that all parent relationships are recorded. It does not infer missing relationships.

Inputs are existing splits and metadata. The tool does not repair splits or infer provenance from images. This early version is intended for small manifests rather than large production workloads.

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