Skip to main content

Extending InterpretML

As it Github page says:

"InterpretML is an open-source package that incorporates state-of-the-art machine learning interpretability techniques under one roof. With this package, you can train interpretable glassbox models and explain blackbox systems. InterpretML helps you understand your model's global behavior, or understand the reasons behind individual predictions."

Installation

The easiest way to install this extension of InterpretML is by following these steps:

  1. Create a new conda environment:
conda create --name {env_name} python=3.9
  1. Activate the environment:
conda activate {env_name}
  1. Navigate to the root directory and install:
pip install ./interpret/python/interpret-core

While you can choose not to use conda, it is recommended to avoid potential conflicts with dependencies.

Objective of this Extension

Currently, InterpretML implements several interpretable models, such as Explainable Boosting Machines (EBMs), decision trees, and linear models, along with various explanation techniques for blackbox models.

This extension aims to expand InterpretML by integrating probabilistic models while leveraging the existing explanation mechanisms provided by the library. By doing so, we enable users to analyze uncertainty, quantify probabilistic predictions, and gain deeper insights into model behavior beyond point estimates.

How InterpretML visualize glassbox models?

InterpretML uses two main ways to explain these type of models:

  • Global Explanations: These explanations provide insights into how a model makes predictions across the entire dataset.

Image


  • Local Explanations: These explanations focus on individual predictions, showing why the model made a specific decision for a given instance.

Image


The main goal will be to use both global and local visualizations for different models that InterpretML does not currently implement.

Adding new models

The new models incorporated in this extension are:

  • Naive Bayes (Gaussian and Categorical): A simple yet powerful probabilistic model based on Bayes' theorem. It assumes feature independence, making it highly efficient for classification tasks.

  • Linear Discriminant Model: A classification model that finds the linear combination of features that best separates two or more classes. It is particularly useful for dimensionality reduction while preserving class separability.

  • TAN (Tree Augmented Naive Bayes): An extension of Naive Bayes that allows for dependencies between features using a tree structure, improving its expressiveness while maintaining efficiency.

  • Bayesian Network: A probabilistic graphical model that represents variables and their conditional dependencies via a directed acyclic graph (DAG). It is useful for modeling complex probabilistic relationships.

  • NAM (Neural Additive Model): A neural network-based approach that extends Generalized Additive Models (GAMs) by learning feature contributions in a flexible and interpretable manner.

These models will be integrated with InterpretML's existing explanation mechanisms, ensuring users can interpret their predictions using global and local explanations.

Metadata

Release files for interpret-extension 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interpret-extension 0.1.6
File Size Uploaded Provenance Actions
interpret_extension-0.1.6.tar.gz 240.8 kB Without provenance Details for interpret_extension-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interpret-extension 0.1.6
File Interpreter ABI Platform Actions
interpret_extension-0.1.6-py3-none-any.whl Python 3 none any Details for interpret_extension-0.1.6-py3-none-any.whl

Total release size: 546.0 kB

Release files / interpret_extension-0.1.6.tar.gz

Download URL interpret_extension-0.1.6.tar.gz
Size 240.8 kB
Tags Source
SHA-256 checksum
How to use checksums
43ae970ad110d6d5da22f71adb554c2b37a6ffd190cefba32409c6be4e40b485
BLAKE2b-256 checksum
How to use checksums
c02a8cfe576abbb92ee729660aee962f4d0c9cf0724e5144708a4caafb68f01d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / interpret_extension-0.1.6-py3-none-any.whl

Download URL interpret_extension-0.1.6-py3-none-any.whl
Size 305.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b6012b32448d36bb686cd5805fc9311a575749748ad6ab77c2592e1a3488f41
BLAKE2b-256 checksum
How to use checksums
3ebb2cad183d87212a3f0932014d6f7661014a0ee44dd7f32b6b031db46e8a21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Security for interpret-extension 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page