Code Monkey home page Code Monkey logo

explainable_ai's Introduction

Explainable AI

Opening the "black box" of machine learning models has been huge in not only understanding the models we create, but then also communicating the insights to others. As I encounter different use cases for explainable AI, I'm distilling the insights into manageable chunks and sharing them openly.

Explainability with Multi-Output Regression Models

  • Demonstrate a way to explore the explainability of multi-output regrssion models with SHAP.
  • View ipynb here (Recommend downloading and running the entire notebook in Google Colab)

SHAP Values for Multi-Output Regression Models

Apply Shapely values to a multi-output regression model to explore how the features effects each of the outputs/labels independently.


explainable_ai's People

Contributors

coryroyce avatar

Stargazers

Zhou Fang avatar Yun Zhou avatar Edd Webster avatar 风马訾垚 avatar Lisette Espin avatar Fuzhan R avatar Robert avatar  avatar

Watchers

 avatar

explainable_ai's Issues

SHAP dependence plots with histograms and regression lines from Kernalexplainer and multioutput regression, wrapper tree based ensemble models. #2825

shap/shap#2825

I want to draw SHAP partial dependence plots with regression lines + and histograms.

I am using kernal explainer for multioutput regression as a wrapper models for xgboost / lgbm/ xgbr/ RF/ etc.

Representing SHAP partial dependence plots (scatter plot and a regression line represented with line and shade) + histogram on the right and top are the distribution of the SHAP and values of variables.

Reference Article : https://www.nature.com/articles/s41598-021-99920-7

Here are the visual graphs.

Reference codes for shap multioutput plots : https://shap.readthedocs.io/en/latest/example_notebooks/tabular_examples/model_agnostic/Multioutput%20Regression%20SHAP.html

But I am unable to draw these kinds of graphs. Because i couldn't develop code for masker and shap values for these kid of plots.
210651286-057f43b0-8a85-4bca-aca4-e8f138bebc5c
210651282-57d39f44-864e-49fd-8093-abde610c5bfd
210651276-4711c86a-66d3-4721-bd42-d2392629888e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.