explain_model
Computes permutation feature importance for a gradient-boosting model on a leakage-safe hold-out split, optionally respecting time or group columns, to reveal which features drive predictions.
Instructions
Which features matter? Permutation importance of a gradient-boosting model on a hold-out split (the latest 20% in time with time_col, 20% of the groups with group_col, else a random 20%).
Args: train_path: training table. target: target column. id_col: ID column, excluded from the features. task: 'auto', 'binary', 'multiclass' or 'regression'. time_col: hold out the latest rows by this column. group_col: hold out whole groups of this column. top_k: number of features to return. max_rows: use a random sample of this many rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | auto | |
| top_k | No | ||
| id_col | No | ||
| target | Yes | ||
| max_rows | No | ||
| time_col | No | ||
| group_col | No | ||
| train_path | Yes |