get_interaction
Calculate SHAP interaction values between two features in tree-based models. Specify the feature pair to see how their combined impact affects predictions.
Instructions
Return SHAP interaction values between two features (Tree models only).
Parameters
feature_a : str Name of the first feature. feature_b : str Name of the second feature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature_a | Yes | ||
| feature_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||