What problem does it solve?
Help you explain why an XGBoost model predicts a certain outcome by attributing prediction contributions to features, so stakeholders can interpret both overall behavior and individual decisions.
Core Features & Use Cases
- Global feature importance (SHAP): Identify the most influential features driving model predictions across the dataset, useful for reporting and model debugging.
- Single-sample prediction explanation: Explain a specific sample’s predicted probability by highlighting top contributing features and their direction (positive/negative).
- Feature interaction analysis: Analyze how two features interact to affect predictions, supporting deeper reasoning about model behavior in complex financial signals.
Quick Start
Use model-explanation with a trained XGBoost model file and a dataset by running: python scripts/explainer.py --model_path ./models/my_model.json --data_path ./examples/toy.parquet --target y_label --output_dir ./outputs/explain_run