Git Product home page Git Product logo

bjlkeng.github.io's People

Contributors

bjlkeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bjlkeng.github.io's Issues

How to treat divide by zero in SHAP kernel?

In your SHAP post , you mentioned:

When |zā€²|=0 or |zā€²|=M the expression has a divide by zero, but you can just drop these terms in general (that's how I interpret what the paper says anyways).

I don't think you should drop these terms in general.

  • When |z'| = 0, we know nothing about the data point to be explained. The predicted value equals the mean prediction of the model. The weighted linear model should then enforce this constraint by giving it a very big weight, so that the base value (intercept of the WLS model) would approximately equal the mean prediction of the model.

  • When |z'| = M, every feature of the data point is present, and the coefficients and the intercept would sum up to the model output of the data point. The weighted linear model should also enforce this constraint by giving it a very big weight, so that the SHAP values (coefficients + intercept) would sum up to the predicted outcome of the data point. That essentially is the Efficiency property from the Shapley values.

So instead of dropping these terms, we should assign a big weight to them (something like 1E8). Note that for all other cases (|z'| between 1 and M-1), the SHAP kernel is guaranteed to be less than 1.

Finally, I really appreciate your great post! It helped me understand SHAP immensely.

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.