Comments (4)
I have the same bug(
from shap.
+1
from shap.
I can't reproduce this bug (using the MWE in the original post above) on the latest version 0.46.0.
It might have been fixed recently after we standardized the shape of expected value and shap values returned by the TreeExplainer for various Tree ensemble models.
If anyone can confirm that this issue persists >= version 0.46.0, feel free to reply here with a reproducible example and I'll be happy to reopen the issue.
Thanks.
from shap.
I had the same issue. Does this problem related to the version of SHAP? Currently I'm using SHAP 0.44.1
. And followed the visualization steps like the document.
Edited: By following the example script at v.0.44.1
, then everything works like a charm.
from shap.
Related Issues (20)
- Plot overhaul: violin
- Plot overhaul: waterfall
- Plot overhaul: bar
- BUG: Native support for (XGBoost) Categoricals HOT 3
- ENH: Time series support
- CI: Build failure with `numpy==2.1.0`, `llvmlite==0.34.0`
- ENH: Remove the `show` argument in shap.plots
- BUG: ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples). HOT 1
- BUG: Setup.py File Contains Python Errors HOT 1
- Deprecate `overlay` parameter in scatter plot
- BUG: shap-feedstock CI fails due to failed imports HOT 1
- BUG: TypeError: set_ticks() got an unexpected keyword argument 'fontsize' HOT 2
- BUG: ax Parameter in bar() function of not working HOT 1
- BUG: Wrong figure in shap.summary_plot for Multiclass. HOT 3
- [Meta-issue] Release 0.47.0 HOT 1
- ENH: Saliency Maps HOT 9
- BUG: Plots broken with RandomForestClassifier in v0.46.0? HOT 3
- BUG: Waterfall plot show incorrect visualization when the SHAP values are small
- ENH: Declare that package supports typing with a py.typed marker HOT 1
- BUG: `shap_values.cohorts` multiclass classification error HOT 2
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.