Reproducible experiment report
Quick answer
An experiment report records the prediction contract, data identity and split IDs, model configuration, metric, selection rule, environment, results and limitations. Reproducibility means another learner can rerun the same procedure on the same fixture. It does not mean identical floating-point behavior on every platform or that the model works on real jobs. Examples use local Python 3.13.5 and scikit-learn 1.8.0 where imported. All fixtures are synthetic; ByteMind library execution is unverified.
Record the selection rule before test evaluation
A small machine-readable configuration makes the validation decision explicit. Sort keys for consistent serialization.
import jsonconfig = {'metric':'MAE_seconds','tie_break':'baseline','split':'fixed-v1'}print(json.dumps(config,sort_keys=True))Expected output:
{"metric": "MAE_seconds", "split": "fixed-v1", "tie_break": "baseline"}The rule and split version can be reviewed before running the test. This JSON is a teaching experiment configuration, not an application database schema.
Count observations per split
A report must show denominators as well as scores. Count the split labels for the fixed fixture.
labels = ['train']*4 + ['validation']*2 + ['test']*2counts = {name:labels.count(name) for name in ('train','validation','test')}print(counts)print(sum(counts.values()))Expected output:
{'train': 4, 'validation': 2, 'test': 2}8The report has only two held-out observations. A precise-looking number from this small sample must not be confused with high-confidence evidence.
Common mistakes
Do not report only the best metric. Include baseline, validation and test scope, dataset version/hash, dependencies, units, failures and caveats. Fixed split IDs remove split randomness here; other estimators may require seeds, hardware and tolerance records. Never publish private data or load untrusted serialized models. This chapter uses synthetic data and does not save model binaries.
Practice and next steps
Run the chapter milestone in a fresh process twice. Compare the reports; identify which fields would change if a job row were edited. Explain why the result is educational rather than production evidence. The separate pure-Python exercise assesses the underlying calculation, not library execution.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Reproducible experiment report — knowledge check
Apply experiment design and evaluation reasoning to synthetic examples.
Which report field identifies the exact data artifact?
Why include split IDs?
What does a repeated identical local report show?
Why report baseline and candidate results?
What should accompany a tiny synthetic experiment?