Reproducible run comparison
Quick answer
Reproducible run comparison means evaluating candidates under the same declared task, data cutoff, split, metric and budget, with enough provenance to reconstruct their results. Examples use standard-library Python unless marked native MLflow, which is syntax-checked only. ByteMind execution is unverified.
Select only comparable runs
runs=[("a","split1",2),("b","split2",1),("c","split1",3)]print(min((r for r in runs if r[1]=="split1"),key=lambda r:(r[2],r[0]))[0])Expected output (locally tested): a. A smaller metric on another split is not eligible.
How it works
Compare only runs with compatible evaluation protocol. Log code and data SHA-256 digests, split definition, metric direction, configuration and runtime. Different parameters are intentional; other changes may invalidate the comparison. Define a tie-break before looking at results. Select by validation and report the final test score for the selected candidate once. Failed runs and missing metrics must not be treated as zeros. Read back stored metrics instead of relying on console output. Recompute an independent metric and compare within a documented tolerance; exact hashes identify files while numeric equality is a different check. The milestone uses a local SQLite teaching store with explicit rows and safe JSON artifacts, not MLflow. An optional native adapter is provided for later approved execution. Neither logging nor a successful reproduction is deployment approval.
Independent metric replay
from fractions import Fractiony=[2,5,8]; p=[1,7,8]mae=Fraction(sum(abs(a-b) for a,b in zip(y,p)),len(y))print(mae)Expected output (locally tested): 1. Recalculate from fixed predictions and targets.
Common mistakes
Do not select on test results, compare incompatible split hashes, silently drop failures, or mistake identical output on one machine for universal reproducibility.
Practice and next steps
Create two records with different split digests and explain why their validation MAE values cannot be directly ranked.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Reproducible run comparison — knowledge check
Apply reproducible run comparison to small examples and debugging scenarios.
Which metric selects the candidate?
How should missing validation metrics be treated?
What should be equal across comparable runs?
What does independent replay check?
Does reproducibility mean deployment approval?