Git Product home page Git Product logo

Comments (5)

echo66 avatar echo66 commented on May 4, 2024

Im quite confused...what do you want to achieve with that?

from shap.

slundberg avatar slundberg commented on May 4, 2024

I assume you mean you don't have access to the original model, but just the outputs from some black box you can't run yourself. In that case, the best you can do is train some kind of mimic model, then explain the mimic model. Train XGBoost for example on the input output pairs you have from the original model, then explain that XGBoost mimic model for the inputs.

from shap.

AlbertoSabater avatar AlbertoSabater commented on May 4, 2024

Yes, I mean what @slundberg says. I would like to know if there is an alternative to building a mimic model. But I guess that is the best option.

from shap.

echo66 avatar echo66 commented on May 4, 2024

@slundberg @AlbertoSabater after taking a look at one of the notebooks that uses KernelExplainer, I noticed that you don't actually need a model. Just pass some function, in the constructor, that calls your black box model in some way.

from shap.

AlbertoSabater avatar AlbertoSabater commented on May 4, 2024

Yes, you are right, but that is not what I am looking for.
I have some users clustered according to a small group of features (first set), but for each user, I have much more features (second set). I want to explore what are the differences on the second set of features for users from different clusters.
It would be great if there was any way to get the influence of the features from the second set given the cluster of each user. But I think that is not possible. The best way to do it is what you said, train a model (XGBoost) to classify users to each cluster given the second set of features.

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.