shap.monitoring_plot

shap.monitoring_plot(ind, shap_values, features, feature_names=None, show=True)

Create a SHAP monitoring plot.

(Note this function is preliminary and subject to change!!) A SHAP monitoring plot is meant to display the behavior of a model over time. Often the shap_values given to this plot explain the loss of a model, so changes in a feature’s impact on the model’s loss over time can help in monitoring the model’s performance.

Parameters
indint

Index of the feature to plot.

shap_valuesnumpy.array

Matrix of SHAP values (# samples x # features)

featuresnumpy.array or pandas.DataFrame

Matrix of feature values (# samples x # features)

feature_nameslist

Names of the features (length # features)