permutation_importance
Compute model-agnostic feature importance on test data via random shuffling. Includes error bars from repeated runs.
Instructions
Permutation importance: model-agnostic feature importance measured on test data. More reliable than built-in feature_importances_ because it measures actual impact on predictions. Shows importance with error bars from multiple random shuffles. Example: permutation_importance(model_name="rf_model", test_df_name="data_test")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| n_repeats | No | ||
| save_path | No | ||
| model_name | No | ||
| test_df_name | No | ||
| target_column | No |