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")
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "permutation_importance"
}
}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 |