Giter Club home page Giter Club logo

Comments (3)

slundberg avatar slundberg commented on May 5, 2024

Good question. There is a distinction between "missing" for the purposes of SHAP value computation and a NULL value given to XGBoost. While NULL in an XGBoost data matrix may reflect "missing" it could represent anything (such as a censored value), and is just routed down the child node that leads to the lowest loss. In SHAP value calculations "missing" means holding a feature out of a conditional expectation, so it means we don't know the value of the feature. Since we don't know the value we integrate over it, which means heading down both branches, even if the NULL value would only follow a single branch.

from shap.

sergun avatar sergun commented on May 5, 2024

Thank you Scott! 100% matches my logic :-)

Thank you very much for your library and papers.
Frankly speaking I didn't 100% understand why SHAP approach to feature importances is better and closer to expert one than other methods..
But I like very your ideas of visualization of feature contributions, all: for single attribute, for interactions and for cluster in feature space of contributions!

from shap.

slundberg avatar slundberg commented on May 5, 2024

Great. The main idea is that if you want to allocate feature attribution values based on holding things out of your model, and you want the attribution values to sum up to the model output, then Shapley values are the only consistent way of doing that (where consistent means you don't order less important feature above a more important feature). SHAP is the combination of Shapley values and using conditional expectations to "hold things out" of the model.

from shap.

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.