Skip to main content

Quickly build Explainable AI dashboards that show the inner workings of so-called "blackbox" machine learning models.

Project description

This package makes it convenient to quickly deploy a dashboard web app that explains the workings of a (scikit-learn compatible) fitted machine learning model. The dashboard provides interactive plots on model performance, feature importances, feature contributions to individual predictions, partial dependence plots, SHAP (interaction) values, visualisation of individual decision trees, etc.

The goal is manyfold:

  • Make it easy for data scientists to quickly inspect the inner workings and

    performance of their model with just a few lines of code

  • Make it possible for non data scientist stakeholders such as co-workers,

    managers, directors, internal and external watchdogs to interactively inspect the inner workings of the model without having to depend on a data scientist to generate every plot and table

  • Make it easy to build a custom application that explains individual

    predictions of your model for customers that ask for an explanation

  • Explain the inner workings of the model to the people working with

    model in a human-in-the-loop deployment so that they gain understanding what the model does do and does not do. This is important so that they can gain an intuition for when the model is likely missing information and may have to be overruled.

The dashboard includes:

  • SHAP values (i.e. what is the contribution of each feature to each

    individual prediction?)

  • Permutation importances (how much does the model metric deteriorate

    when you shuffle a feature?)

  • Partial dependence plots (how does the model prediction change when

    you vary a single feature?

  • Shap interaction values (decompose the shap value into a direct effect

    an interaction effects)

  • For Random Forests and xgboost models: visualization of individual trees

    in the ensemble.

  • Plus for classifiers: precision plots, confusion matrix, ROC AUC plot,

    PR AUC plot, etc

  • For regression models: goodness-of-fit plots, residual plots, etc.

The library is designed to be modular so that it is easy to design your own custom dashboards so that you can focus on the layout and project specific textual explanations of the dashboard. (i.e. design it so that it will be interpretable for business users in your organization, not just data scientists)

A deployed example can be found at http://titanicexplainer.herokuapp.com

Project details


Release history Release notifications | RSS feed

This version

0.3.5

Download files

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

Source Distribution

explainerdashboard-0.3.5.tar.gz (272.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

explainerdashboard-0.3.5-py3-none-any.whl (287.2 kB view details)

Uploaded Python 3

File details

Details for the file explainerdashboard-0.3.5.tar.gz.

File metadata

  • Download URL: explainerdashboard-0.3.5.tar.gz
  • Upload date:
  • Size: 272.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for explainerdashboard-0.3.5.tar.gz
Algorithm Hash digest
SHA256 f3eacca7d8d093eaec7e2cd5dbddb49b11b8947badd42360b0dfe87b75345dd5
MD5 f284be6f679357af62760cb7a484d0c6
BLAKE2b-256 2bd708b2985766348206324c8774dc6dc7ecb37ae215f827bde02423215becb8

See more details on using hashes here.

File details

Details for the file explainerdashboard-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: explainerdashboard-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 287.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for explainerdashboard-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 51b29718292fd45e112fdd009aa26e71d940aa5fee0bbc2dcfd255041c1eaaca
MD5 3836ba7335a9d9d1fadf910cd0412c63
BLAKE2b-256 c60379092712ab94507ae14085e5127b48e2d335a3f7c876e77d1fd6ef9356b4

See more details on using hashes here.

Supported by

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