Code Monkey home page Code Monkey logo

Comments (5)

jphall663 avatar jphall663 commented on May 31, 2024

My advice here is ... (see what you think)

  1. GENERAL
  • scrap monotonic (since it is broken/unsupported).
  1. GLOBAL VAR. IMP.
  • do not use XGBoost var. imp. (it's theoretically inconsistent).
  • use mean absolute shapley across all classes and rows as overall var. imp. ranking then just make a horizontal bar chart of the above values for each var. for overall var. imp. across all classes. (Should look like XGBoost var. imp. chart.)
  • Then break shapley out by class using shap package summary plot, like you did for PAY_0 = 0, but just repeat for all classes.
  1. LOCAL VAR. IMP. (show for 2-3 rows)
  • show mean absolute shapley ranking across classes for each variable as horizontal bar chart for a single row. (should look like global var. imp. horizontal bar chart above.)
  • show regular signed shapley values and reason codes for the class that the model predicts.
  1. PDP/ICE
  • Keep overall PDP plot you have, but make a point that if classes > 10, we would only take the top 10 most common classes by default.
  • For ICE, plot at min, max, and deciles as we've done before, but now we have to do it for each class. Also keep partial dependence in ICE plot and plot ice curves in a color gradient of the same color as the corresponding partial dependence. So ICE for class=0 would be all blue gradients, for class=1 it would be all orange color gradients, and so on.

from interpretable-ml.

navdeep-G avatar navdeep-G commented on May 31, 2024

thx @jphall663 !

Here are my responses:

    • Scrap monotonic -> Yes
    • Will remove XGBoost global var importance
    • Will do mean absolute for Shapley across all classes and rows and make a horizontal bar chart.
    • Will break Shapley out by class (Already thought of doing this but wanted to get a simple notebook out first)
    • Will repeat (3) and (4) for a single row. is that what you mean?
    • PDP/ICE comments seem fine to me.

from interpretable-ml.

jphall663 avatar jphall663 commented on May 31, 2024

For local var. imp.:

  • do like we originally did for multinomial loco, just mean absolute shapley value across all classes for each variable.
  • then make reason codes with shapley the way we have been doing, but only for the predicted class. not all classes.

from interpretable-ml.

navdeep-G avatar navdeep-G commented on May 31, 2024

Moved DT surrogate comments here: #5

from interpretable-ml.

navdeep-G avatar navdeep-G commented on May 31, 2024

I think I have addressed all of your comments from a code standpoint.

from interpretable-ml.

Related Issues (20)

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.