THE KEY IDEA

A model score is meaningful only in relation to its evaluation data and intended use. Separate training and testing at the level that matches future deployment, prevent preprocessing leakage, and compare against a useful baseline.

01 / Split at the level of the real question

Suppose a wearable system produces thousands of overlapping motion windows from a few recording sessions. Randomly splitting windows can place almost identical observations on both sides of the evaluation. If the product must work for a new person, hold out people. If it must work in a later session, hold out sessions or time periods. The split should reflect the generalisation you intend to claim.

02 / Keep learning steps inside training

Scaling, imputation, feature selection and parameter tuning can all learn information from data. Fit these steps on the training partition and apply the fitted transformation to held-out data. Scikit-learn documents pipelines as a way to keep preprocessing and model fitting together and reduce leakage during cross-validation. A test set should not become a repeated target for tuning decisions.

03 / Choose metrics that reveal useful failures

A rare-event detector may achieve high accuracy by predicting that nothing ever happens. Report the errors that matter: missed events, false alerts, calibration and performance across relevant groups or environments. For time-dependent systems, also measure event timing. A correct label arriving after the useful decision window may have little operational value. Define the cost of different mistakes before selecting thresholds.

04 / Measure on the deployment target

The deployed result depends on preprocessing, numerical representation, memory limits and integration code as well as the model. Quantisation may reduce the size or execution cost of a model, but its accuracy impact must be evaluated. ONNX Runtime documents different quantisation approaches and their trade-offs; it does not remove the need to validate the complete target-device pipeline.

What a useful evaluation report contains

Document dataset origin and permissions, split rules, baselines, metric definitions, uncertainty, hardware and known limitations. Present enough detail for another engineer to reproduce the comparison and understand where the model should not be used.

Further reading

Scikit-learn — Common pitfalls and recommended practices ↗ONNX Runtime — Quantize ONNX models ↗These references support general engineering practices. They do not imply endorsement of TopLatitude.

Turn the perspective into a project