Skip to main content
For a complete list of all built-in ML metrics including drift, see the ML Metrics Reference.

Monitor Model Performance Changes With Fiddler

Monitoring Data Drift in ML Models

Model performance can be poor if models trained on a specific dataset encounter different data in production. This is called data drift and it is a metric which is available on model inputs, outputs, and custom features. On your model’s Dashboard, Fiddler gives you a diverse set of visuals to explore different metrics. A model's dashboard showing Prediction Drift and Accuracy By State charts over the last 30 days. Leverage the data drift chart to identify when data is drifting. Then select a point on the chart to open the Root Cause Analysis panel, where the Data Drift tab shows which columns are drifting and by how much. This is the first step in identifying possible model performance issues. The Data Drift tab of the Root Cause Analysis panel, listing each column's drift (Jensen-Shannon Distance) and feature impact.

Drift Metrics Details

Fiddler supports the following:
  • Drift Metrics
    • Jensen–Shannon distance (JSD)
      • A distance metric calculated between the distribution of a field in the baseline and that same distribution for the time period of interest. For numerical columns, distributions are approximated using histograms with configurable bin boundaries.
      • For more information on JSD, click here.
    • Population Stability Index (PSI)
      • A drift metric based on the multinomial classification of a variable into bins or categories. For numerical columns, the bin boundaries can be customized via the column’s bins property — see Customizing Your Model Schema. By default, 10 uniform bins are auto-generated from the column’s min and max values. The differences in each bin between the baseline and the time period of interest are then utilized to calculate it as follows:
        🚧 Note There is a possibility that PSI can shoot to infinity. To avoid this, PSI calculation in Fiddler is done such that each bin count is incremented with a base_count=1. Thus, there might be a slight difference in the PSI values obtained from manual calculations.
  • Average Values – The mean of a field (feature or prediction) over time. This can be thought of as an intuitive drift score.
  • Drift Analytics – You can drill down into the features responsible for the prediction drift using the table on the Data Drift tab of the Root Cause Analysis panel.
    • Feature Impact: The contribution of a feature to the model’s predictions. It shows a value only after you upload your own feature impact values; until then, the column shows a dash. To upload them, see Feature Impact.
    • Drift: Drift of the feature, calculated using the drift metric of choice.
    • Prediction Drift Impact: A heuristic calculated using the product of the feature impact and the feature drift. The higher the score, the more this feature is likely to have contributed to the prediction drift. Like Feature Impact, it shows a dash until you upload feature impact values.

Determining Drift Root Cause

Select a point on a drift chart to open the Root Cause Analysis panel below the chart. On its Data Drift tab, expand a feature’s row to see the feature distribution for both the time period under consideration and the baseline dataset. A categorical feature's row expanded on the Data Drift tab, comparing baseline and production frequencies for each category.

Why Track Data Drift?

  • Data drift is a great proxy metric for performance decline, especially if there is delay in getting labels for production events. (e.g. In a credit lending use case, an actual default may happen after months or years.)
  • Monitoring data drift also helps you stay informed about distributional shifts in the data for features of interest, which could have business implications even if there is no decline in model performance.

Taking Action on Observed Data Drift

  • High drift can occur as a result of data integrity issues (bugs in the data pipeline), or as a result of an actual change in the distribution of data due to external factors (e.g. a dip in income due to COVID). The former is more in our control to solve directly. The latter may not be solvable directly, but can serve as an indicator that further investigation (and possible retraining) may be needed.
  • You can drill down deeper into the data by examining it on the Analyze tab of the Root Cause Analysis panel.