Build a reproducible experiment record

Check units and version numbers as you type. · 179 words

A reproducible experiment record is a saved description of exactly how a result was produced. It lets another person rerun the work with the same inputs, code, settings, and output. For example, an experiment named exp-014 might record: dataset museum-v2 with checksum abc123; code commit a1b2c3d; command train.py --seed 7 --epochs 3; Python 3.11.2 and library version 2.4.1; output of 3 of 4 evaluation examples correct; and model-file checksum def456. A checksum is a short fingerprint that changes if a file changes.

The seed controls random choices, such as the order used to shuffle training examples. The commit identifies the exact code, while dataset and model checksums confirm which files were used. With those items, the team can rerun the command instead of relying on memory. The record should also save the evaluation examples, metric definitions, computing environment, including hardware and installed software versions, and any failure messages. Reproducibility does not mean the model is correct. It means the experiment can be repeated and audited. A useful record answers: what changed, what ran, with what data, and what resulted?

Check your recall

In exp-014, what are the dataset checksum, code commit, and random seed?

Check your answer

The dataset checksum is abc123, the code commit is a1b2c3d, and the random seed is 7. Together they identify the data, code, and controlled random choices.

Sources and credits

Original KeyTouch lesson. Background reading · Google · Rules of Machine Learning.