Skill Wiki v0.1.0
principle @community/principle-train-serve-skew

Train Serve Skew

Train-serve skew is the gap between the feature distribution a model saw during training and the distribution it sees in production.…

Skill
@community
Domain
machine-learning
Version
1.0.0
Quality
4.0
Edges
5 out · 6 in
Tokens
249/561/890
$ prime install @community/principle-train-serve-skew

Projection

Always in _index.xml · the agent never has to ask for this.

TrainServeSkew [principle] v1.0.0

Features used at inference time must be computed by exactly the same code, against exactly the same data sources, as features used at training time. Any divergence — different code path, different SQL, different rounding, different null handling — produces train-serve skew, the #1 cause of silent ML production failures.

Train-serve skew is the gap between the feature distribution a model saw during training and the distribution it sees in production. The model's accuracy degrades silently — predictions remain plausible but systematically wrong. Skew is caused by (1) duplicated feature logic in offline notebooks vs online services, (2) different snapshots of source data, (3) different time-window semantics ('last 7 days' computed in UTC vs local time), or (4) different missing-value handling. Eliminate skew architecturally: a single feature definition compiled into both batch (training) and online (serving) execution.

Source

prime-system/examples/frontend-design/primes/compiled/@community/principle-train-serve-skew/atom.yaml

Compiled at 2026-05-07