Comments (2)
Posting my workaround for when I search for this in the future others.
import seaborn as sns
makes = ['Ford', 'Toyota', 'Honda', 'Tesla']
(pd.DataFrame(vals.values, columns=X_reg.columns)
.rename(columns=lambda col: f'{col}_shap')
.assign(base_value=vals.base_values, **X_reg)
.pipe(lambda df_:
sns.catplot(x='make', y='make_shap', data=df_, alpha=.5,
hue='year', palette='RdBu',
order=makes))
)
from shap.
Related Issues (20)
- Why do some values of categorical features have a low positive rate but get high SHAP scores in binary classification?
- Deprecated numpy functions in vendored colorconv code
- Plot overhaul: beeswarm
- Plot overhaul: benchmark
- Plot overhaul: decision
- Plot overhaul: embedding
- Plot overhaul: force
- Plot overhaul: initjs
- Plot overhaul: group_difference
- Plot overhaul: heatmap
- Plot overhaul: image
- Plot overhaul: image_to_text
- Plot overhaul: monitoring
- Plot overhaul: scatter
- Plot overhaul: partial_dependence
- Plot overhaul: text
- Plot overhaul: violin
- Plot overhaul: waterfall
- Plot overhaul: bar
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.