Inferensys

Glossary

InterpretML

InterpretML is an open-source software package from Microsoft that provides a unified API for training glass-box, interpretable models like the Explainable Boosting Machine and for applying post-hoc explanation techniques to black-box models.
ML engineer managing model training cluster on laptop, GPU utilization visible, technical deep learning setup.
OPEN-SOURCE INTERPRETABILITY TOOLKIT

What is InterpretML?

InterpretML is an open-source software package from Microsoft that provides a unified API for training inherently interpretable 'glass-box' models and applying post-hoc explanation techniques to black-box models.

InterpretML is an open-source Python package implementing a unified API for model interpretability. It supports two distinct paradigms: training glass-box models that are inherently interpretable, such as the Explainable Boosting Machine (EBM), and generating post-hoc explanations for any existing black-box model using techniques like SHAP, LIME, and Partial Dependence Plots. This dual approach allows practitioners to either build a model that is transparent by design or audit a pre-existing complex model.

The package includes an interactive visualization dashboard for exploring feature importances, individual decision rationales, and global model behavior. By standardizing the interface across diverse explanation methods, InterpretML enables direct comparison of feature attributions from different techniques. Its EBM implementation produces modular, additive shape functions for each feature, making the exact contribution of every input to a prediction fully auditable—a critical capability for model governance and adverse action reason code generation in regulated financial applications.

UNIFIED INTERPRETABILITY

Key Features of InterpretML

InterpretML is an open-source package from Microsoft that provides a unified API for training glass-box models and applying post-hoc explanation techniques to black-box models, enabling comprehensive model understanding.

01

Explainable Boosting Machine (EBM)

A glass-box model that is as accurate as state-of-the-art black-box models like Random Forest and Gradient Boosted Trees while remaining fully interpretable. EBM learns modular feature functions for each input, allowing exact, human-readable explanations of its predictions. Each feature's contribution is additive and can be visualized as a graph, making it possible to understand exactly how the model arrived at a specific decision. This is critical for fraud detection where analysts need to justify flagged transactions to regulators.

Glass-box
Model Type
Additive
Explanation Structure
02

Unified API for Glass-box and Black-box

Provides a single, consistent interface for both training inherently interpretable models and explaining existing black-box models. This eliminates the need to learn multiple libraries for different interpretability tasks. The API supports classification and regression problems and integrates seamlessly with scikit-learn conventions. For fraud teams, this means you can train an EBM for transparent decisioning or use SHAP and LIME through the same interface to audit a deep learning model already in production.

scikit-learn
API Compatibility
03

Interactive Visualization Dashboard

Includes a built-in, interactive dashboard for exploring model behavior. Users can inspect global feature importance, drill down into local explanations for individual predictions, and analyze feature interaction strength. The dashboard visualizes how each feature contributes to a prediction across its entire range of values. For a fraud analyst reviewing a high-risk transaction, the dashboard can instantly surface the top reason codes—such as 'transaction amount 3x user average'—that drove the anomaly score.

Local & Global
Explanation Scope
04

Post-hoc Explanation Methods

Supports a suite of model-agnostic and model-specific explanation techniques for black-box models, including SHAP, LIME, Partial Dependence Plots, and Permutation Feature Importance. This allows teams to generate reason codes for any deployed model, even complex ensembles or neural networks. In financial fraud anomaly detection, this capability is essential for generating adverse action reason codes required by regulations when a transaction is blocked based on a model's output.

SHAP, LIME, PDP
Supported Techniques
05

Glass-box Model Training

Beyond EBM, InterpretML supports training other inherently interpretable models such as Decision Trees, Logistic Regression, and RuleFit. RuleFit creates a sparse linear model combining simple, interpretable rules generated from decision trees with original features. This provides both predictive accuracy and complete transparency. For fraud detection, a RuleFit model can produce explicit, auditable rules like 'IF transaction_country != account_country AND amount > $10,000 THEN high_risk'.

EBM, RuleFit, Linear
Glass-box Models
06

Feature Interaction Detection

Automatically detects and quantifies feature interaction strength using metrics like the H-statistic. This reveals non-additive behavior where the effect of one feature on the prediction depends on the value of another. In fraud detection, an interaction might exist between transaction time and merchant category, where late-night purchases at electronics stores carry a disproportionately higher risk. Understanding these interactions is vital for building robust, explainable fraud models.

H-statistic
Interaction Metric
INTERPRETML EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about Microsoft's open-source interpretability library, covering its architecture, glass-box models, and post-hoc explanation techniques.

InterpretML is an open-source software package from Microsoft that provides a unified API for training inherently interpretable 'glass-box' models and for applying post-hoc explanation techniques to black-box models. It works by offering two primary modules: the Explainable Boosting Machine (EBM), a glass-box model that learns additive feature functions, and a suite of black-box explainers including SHAP, LIME, and Partial Dependence Plots. The library standardizes the interface for fitting, predicting, and explaining models, allowing practitioners to seamlessly compare different interpretability methods. Its design philosophy emphasizes that explanations should be exact and modular, enabling compliance officers and model governance leads to audit anomaly scores and blocking decisions with mathematical precision.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.