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.
Glossary
InterpretML

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.
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.
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.
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.
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.
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.
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.
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'.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
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.
Related Terms
Key concepts and complementary techniques that form the interpretability landscape alongside InterpretML's glass-box and black-box explanation methods.
Partial Dependence & ICE Plots
InterpretML generates Partial Dependence Plots (PDP) and Individual Conditional Expectation (ICE) plots for global model understanding. PDPs show the average marginal effect of a feature, while ICE plots reveal heterogeneous effects across individual instances. Critical for fraud models:
- Visualizing how transaction amount affects risk score
- Detecting non-monotonic relationships that violate regulatory expectations
- Identifying where model behavior diverges across subpopulations
Glass-Box vs. Post-Hoc Paradigm
InterpretML supports both intrinsic interpretability (glass-box models like EBM) and post-hoc explainability (SHAP, LIME on black-boxes). Decision framework:
- Glass-box: Use when regulatory compliance requires exact, auditable logic (FCRA adverse action notices)
- Post-hoc: Use when maximum predictive performance is required and explanations are for internal debugging
- Hybrid: Train an EBM as a surrogate model to approximate a complex ensemble for global insight
Morris Sensitivity Analysis
InterpretML includes Morris sensitivity analysis for global feature importance screening. This method systematically varies one factor at a time across a grid of input values to compute elementary effects. Advantages over permutation importance:
- Computationally efficient for high-dimensional data
- Identifies features with non-linear effects and interactions
- Provides both mean and variance of feature influence
- Useful as a preprocessing step before building interpretable models

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us