Comments (3)
Hi, thanks for developing such a cool and handy tool! This is indeed amazing work.
By the way, I have a question. I have a model(random-forest classifier)and shap values(N*T matrix) calculated from the model(I used python for these values [slunderg/shap]). I try to take benefit from your code and decompose r2_shap by features but am not sure how I can set an intercept. Can I just set this as 0 in my case? Looking forward to hearing back from you.
mw_fcs_xall <- read.csv("../test_X.csv")
mw_fcs_yall <- read.csv("../y_all.csv", sep="")
mw_fcs_yall = as.integer(unlist(mw_fcs_yall))
typeof(mw_fcs_yall)
colnames(test_X)
price_var = test_X %>%
select(starts_with("lag"))
asset_var = test_X %>%
select(cell_phone,number_celphones,roof_not_natural,roof_iron,Refrigerator,Radio,Television,Car, Bicycle, Motorcycle, Car )
weather_var = test_X %>%
select(raincytot, day1rain, maxdaysnorain,lhz_day1rain,day1rain, gdd, tmean, lhz_raincytot, lhz_maxdaysnorain, heatdays)
shapFlex::r2(price_var, y_test, 0)
shapFlex::r2(asset_var, y_test, 0)
shapFlex::r2(weather_var, y_test, 0)
from shapflex.
+1
from shapflex.
Sorry about the delayed response. Unfortunately, I'm not able to support this package right now. I'm out of the open source game for the time being.
from shapflex.
Related Issues (11)
- Re-work everything HOT 1
- Question: Sigma Unique HOT 2
- Result from symmetric shap does NOT match with the SHAP package HOT 3
- shapFlex::r2 returned NaN for r2_shap HOT 3
- Shap Interaction
- package ‘shapFlex’ is not available for this version of R HOT 1
- Setup.py in python package requires explicit encoding
- Change from parallel to futures HOT 1
- Clarify and add sampling methods HOT 3
- Add vignette with multiple dataset example HOT 1
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 shapflex.