Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 12, 2026·3 min de lecture

InterpretML — Interpretable Machine Learning by Microsoft

InterpretML provides glass-box models like Explainable Boosting Machines and black-box explainers in a unified API, helping data scientists understand why models make specific predictions.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
InterpretML Explainability
Commande CLI universelle
npx tokrepo install abe0118d-4ddd-11f1-9bc6-00163e2b0d79

Introduction

InterpretML is an open-source library from Microsoft Research that unifies interpretable (glass-box) models and explainability techniques (black-box) under a single API. Its flagship model, the Explainable Boosting Machine (EBM), achieves accuracy comparable to gradient boosting while remaining fully interpretable.

What InterpretML Does

  • Trains glass-box models like EBM, linear models, and decision trees
  • Explains any black-box model with SHAP, LIME, and partial dependence
  • Provides interactive visualizations of feature importances and effects
  • Supports both classification and regression tasks
  • Enables comparison of multiple explanations side by side

Architecture Overview

InterpretML defines an Explainer interface with explain_global and explain_local methods. Glass-box models implement both training and explanation natively. Black-box explainers wrap external models and produce explanations via perturbation or gradient methods. All explanations are rendered as interactive Plotly dashboards.

Self-Hosting & Configuration

  • Install via pip; the package includes all glass-box models
  • Use ExplainableBoostingClassifier or Regressor as drop-in sklearn estimators
  • Set max_bins and interactions to control EBM complexity
  • For black-box explanations, wrap any predict function with ShapKernel or LimeTabular
  • Launch the interactive dashboard with show() in a Jupyter environment

Key Features

  • EBM matches gradient boosting accuracy with full interpretability
  • Unified API across glass-box and black-box explanation methods
  • Interactive Plotly-based dashboards for exploring feature effects
  • Pairwise interaction detection built into the EBM training loop
  • Differential privacy support for training on sensitive data

Comparison with Similar Tools

  • SHAP — focuses on Shapley value explanations for any model; InterpretML includes SHAP plus its own glass-box models
  • LIME — local explanation technique; InterpretML integrates LIME alongside other methods
  • Alibi — strong on counterfactual and anchor explanations; InterpretML focuses on feature-level interpretation
  • Captum — PyTorch-specific attribution methods; InterpretML is framework-agnostic

FAQ

Q: What is an Explainable Boosting Machine? A: EBM is a generalized additive model with pairwise interactions trained via cyclic gradient boosting. Each feature's effect is learned independently, making the model fully inspectable.

Q: Does EBM work with large datasets? A: Yes. EBM scales well and supports parallel training via the n_jobs parameter.

Q: Can I use InterpretML with deep learning models? A: Yes. The black-box explainers work with any model that has a predict or predict_proba method.

Q: Is InterpretML production-ready? A: Yes. EBM models can be serialized with joblib or pickle and served like any scikit-learn model.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires