get_feature_importance
Rank a credit risk model's globally important features by mean absolute SHAP impact to answer what drives predictions overall. Returns top_n features with raw and friendly names plus scores.
Instructions
Return the model's globally most important features (by mean |SHAP|).
Use this for "what drives this model overall?" questions, as opposed to the reasons behind one borrower's score. Returns {"top_features": [...]} ranked by average absolute SHAP impact across a sample, each entry carrying its raw name, a friendly name, and its importance score.
Args: top_n: how many features to return (default 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||