shap.utils.potential_interactions

shap.utils.potential_interactions(shap_values_column, shap_values_matrix)

Order other features by how much interaction they seem to have with the feature at the given index.

This just bins the SHAP values for a feature along that feature’s value. For true Shapley interaction index values for SHAP see the interaction_contribs option implemented in XGBoost.