Record the fitted computation
Two files are called model.json. One came from a constant predictor and the other from a fitted line. The newer file has a better evaluation score, but a request log containing only the filename cannot explain which predictor answered yesterday. Experiment tracking preserves the computation; a registry gives the resulting artifact a stable identity for deployment.
We will fit a tiny scalar model using independently specified numbers, record its evidence and move a deployment alias without changing old records. This is a standard-library fixture, not an MLflow integration, an evaluation of a real preview model or a downloaded dataset.
A filename is a location, not an experiment
Overwriting a shared file loses the link between an earlier result and the bytes that produced it. Keeping numbered filenames helps locate artifacts but does not explain training data, feature state or evaluation. A copied file may also keep its name while its contents change.
Assign a run identity to each execution and a content identity to each resulting artifact. They answer different questions. Two independent runs can produce equal bytes; a failed run may produce intermediate files without an accepted model. Keep run status and publication status separate, so a partially completed experiment cannot become the default serving artifact simply because a file exists.
Record the inputs that determine the result
A useful run description identifies code revision, source-data snapshot, split definition, feature state, algorithm configuration, environment and randomness controls. Also identify the evaluation procedure and any acceptance threshold. If a value changes the computation or the interpretation of its score, it belongs in the evidence.
A seed is only one dependency. Data order, nondeterministic kernels, library changes and different hardware can affect a result. Bouthillier and coauthors examine several sources of variation in ML benchmarks; their work motivates reporting the scope of a comparison rather than treating one favourable run as a universal property. Our arithmetic fixture uses no randomness and makes a much narrower reproducibility claim.
The training inputs are , where each pair is . The evaluation inputs are . These are authored scalar pairs, not measurements of learners or an operational service. Their small size lets every fitted coefficient and error be checked by hand.
Compare a constant predictor with an ordinary least-squares line . The training means are and . The constant predicts . For the line,
This follows by minimizing the sum of squared residuals with respect to slope and intercept; the denominator is nonzero because the training inputs vary. The fixture implements these sums directly. It does not call a model library or reuse a benchmark's reported coefficients.