Changes in Feature Distributions After Deployment

The distribution of an incoming feature may change over time. Comparing distributions can reveal a shift worth investigating.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a measurement range
  2. Separate change from measured error
  3. Compare a feature using fixed bins and context
  4. Separate upstream schema errors from genuine population changes

Trace a measurement range

A model trained with most values between 10 and 30 may receive many inputs above 50 later. Use comparable bins and units before quantifying the difference. See histogram boundaries.

Separate change from measured error

A feature shift can occur without known labels. Collect reliable outcomes before claiming how prediction quality changed. Chart scope clarifies which population was observed.[1][2]

Compare a feature using fixed bins and context

In a training window, forty percent of orders have distance under five kilometres. The same share is twenty-five percent after deployment. A changed mix can affect predictions even before outcomes are available. See feature availability over time.

Fixed threshold: distance < 5 km
Training share .40
Current share .25
Verify identical units and inclusion criteria

Separate upstream schema errors from genuine population changes

A unit mistake can move a whole distribution. Compare raw ingestion and transformed data. When labels arrive, check whether model performance changed on the actual current population.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. scikit-learn Developers, Metrics and Scoring: Quantifying the Quality of Predictions ↩