Code Monkey home page Code Monkey logo

Comments (7)

ShichenXie avatar ShichenXie commented on June 25, 2024

可以把这列和y发我试试么

from scorecard.

zjyoung avatar zjyoung commented on June 25, 2024

可以把这列和y发我试试么

我更新了问题。附件是test.xlsx。

from scorecard.

ShichenXie avatar ShichenXie commented on June 25, 2024

这里的0是填充的吧,如果是可以试着填为-1、-9,、-999之类的;

library(data.table)
library(scorecard)

woebin(setDT(dat)[var == 0, var := -1],  y = 'label')

也可以把0设置为特殊值;

woebin(dat, y = 'label', special_values = list(var = 0))

from scorecard.

zjyoung avatar zjyoung commented on June 25, 2024

这里的0不是填充的,0代表某种行为进行了0次,其他的值也依次类推。而且有一个前后矛盾的点,我用var_filter来看这个变量的话,iv是1.5,说明iv是可以算出来的。但是到了woebin这一步,就又算不出来了。

from scorecard.

ShichenXie avatar ShichenXie commented on June 25, 2024

我更新了下下。你安装github上面的版本试试。修改了初始化分箱点的方法。

另外,var_filter里面的iv值与woebin里面的iv值都是调用相同函数计算的。区别在于var_filter里面计算的iv是变量分箱之前的iv值,woebin里的分箱之后的iv值

from scorecard.

zjyoung avatar zjyoung commented on June 25, 2024

我更新了下下。你安装github上面的版本试试。修改了初始化分箱点的方法。

另外,var_filter里面的iv值与woebin里面的iv值都是调用相同函数计算的。区别在于var_filter里面计算的iv是变量分箱之前的iv值,woebin里的分箱之后的iv值

已经好了,完美的解决了我的困惑,非常感谢!!

from scorecard.

ShichenXie avatar ShichenXie commented on June 25, 2024

good

from scorecard.

Related Issues (20)

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.