GithubHelp home page GithubHelp logo

Add multi-class/outcome support about shapflex HOT 3 OPEN

nredell avatar nredell commented on July 3, 2024
Add multi-class/outcome support

from shapflex.

Comments (3)

mnmx0101 avatar mnmx0101 commented on July 3, 2024 1

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.

golivax avatar golivax commented on July 3, 2024

+1

from shapflex.

nredell avatar nredell commented on July 3, 2024

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)

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.