Skip to main content

Microsoft Interpret Extensions SDK for Python

Project description

Microsoft Interpret Community SDK for Python

This package has been tested with Python 3.6, 3.7 and 3.8

The Interpret Community SDK builds on Interpret, an open source python package from Microsoft Research for training interpretable models, and helps to explain blackbox systems by adding additional extensions from the community to interpret ML models.

Interpret-Community is an experimental repository that hosts a wide range of community developed machine learning interpretability techniques. This repository makes it easy for anyone involved in the development of a machine learning system to improve transparency around their machine learning models. Data scientists, machine learning engineers, and researchers can easily add their own interpretability techniques via the set of extension hooks built into the peer repository, Interpret, and expand this repository to include their custom-made interpretability techniques.

Highlights of the package include:

  • The TabularExplainer can be used to give local and global feature importances
  • The best explainer is automatically chosen for the user based on the model
  • Local feature importances are for each evaluation row
  • Global feature importances summarize the most importance features at the model-level
  • The API supports both dense (numpy or pandas) and sparse (scipy) datasets
  • There are utilities provided to convert engineered explanations, based on preprocessed data before training a model, to raw explanations on the original dataset
  • For more advanced users, individual explainers can be used
  • The KernelExplainer, GPUKernelExplainer, PFIExplainer and MimicExplainer are for BlackBox models
  • The MimicExplainer is faster but less accurate than the KernelExplainer, and supports various surrogate model types
  • The TreeExplainer is for tree-based models
  • The LinearExplainer is for linear models
  • The DeepExplainer is for DNN tensorflow or pytorch models
  • The PFIExplainer can quickly compute global importance values
  • LIMEExplainer builds local linear approximations of the model's behavior by perturbing each instance
  • GPUKernelExplainer is GPU-accelerated implementation of SHAP's KernelExplainer as a part of RAPIDS's cuML library, and is optimized for GPU models, like those in cuML. It can be used with CPU-based estimators too.
  • An adapter to convert any feature importance values to an interpret-community style explanation

Please see the github website for the documentation and sample notebooks: https://github.com/interpretml/interpret-community

Auto-generated sphinx API documentation can be found here: https://interpret-community.readthedocs.io/en/latest/index.html

More information on the ExplanationDashboard can be found here: https://github.com/microsoft/responsible-ai-widgets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interpret_community-0.25.0.tar.gz (88.2 kB view details)

Uploaded Source

Built Distribution

interpret_community-0.25.0-py3-none-any.whl (129.8 kB view details)

Uploaded Python 3

File details

Details for the file interpret_community-0.25.0.tar.gz.

File metadata

  • Download URL: interpret_community-0.25.0.tar.gz
  • Upload date:
  • Size: 88.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15

File hashes

Hashes for interpret_community-0.25.0.tar.gz
Algorithm Hash digest
SHA256 e63b5bc5d24e93e86197f9b9c748f9de26e07d058c4f04c21a31b7b345efdea4
MD5 9934df6462cd07071e496c9046dea579
BLAKE2b-256 376eac3dc5690b1f3453cef21b75ef8755cb77964b697ecb89acf9822de0d8fe

See more details on using hashes here.

File details

Details for the file interpret_community-0.25.0-py3-none-any.whl.

File metadata

  • Download URL: interpret_community-0.25.0-py3-none-any.whl
  • Upload date:
  • Size: 129.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15

File hashes

Hashes for interpret_community-0.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5254d4897d01252a9dc54c63b22feed7a6c1682b24ccd10ae81ee45e9312aecf
MD5 5549d75db71fbfa7ca9d587870522c4a
BLAKE2b-256 ab7a2da074107a834bf04904a22172439b4f96d617197462733cd2afc2335df2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page