Comments (5)
Im quite confused...what do you want to achieve with that?
from shap.
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.
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.
@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.
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)
- SHAP with TF Encoder Decoder timeseries | AssertionError HOT 4
- ENH: Do not overwrite global warning formatter HOT 1
- [Meta issue] Release 0.43.0 HOT 5
- BUG: hclust: xgboost early_stopping_rounds deprecated in fit
- BUG: invalid value encountered in divide
- BUG: waterfall color customisation HOT 3
- ENH: Support python 3.12 HOT 1
- ENH: TreeExplainer Support for sksurv's Random Survival Forest?
- BUG: incomprehensible error message from the explainer HOT 2
- BUG: SHAP does not take into account certain key parameters from the xgboost sklearn models that can affect predictions HOT 4
- BUG: XGboost binary format is being deprecated HOT 4
- BUG: AttributeError for Interaction Values with RandomForestClassifier
- BUG: CatboostClassifier explanations with feature interactions fail on Windows
- BUG: TypeError for `shap_values()` and `shap_interaction_values()` for xgboost<1.4
- BUG: ImportError: Numba needs NumPy 1.22 or greater. Got NumPy 1.21. HOT 5
- BUG: SHAP fails when running on transformers for QA
- CI: GH Actions encounter "No space left on device" unless unused CI tools are removed HOT 4
- ENH: The shap can't be used to seq2seq model HOT 12
- SHAP not working with LSTM! HOT 7
- BUG: DeepExplainer explanations do not sum up to model output HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shap.