Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

woe_ply转换时,不能将缺失值转换成其对应woe #103

Open
ChenSir99 opened this issue May 16, 2023 · 6 comments
Open

woe_ply转换时,不能将缺失值转换成其对应woe #103

ChenSir99 opened this issue May 16, 2023 · 6 comments

Comments

@ChenSir99
Copy link

woe_ply转换时,不能将缺失值转换成缺失值所在箱对应的woe,而是转换成了一个非缺失值箱对应的woe值,请问该怎么解决

@ShichenXie
Copy link
Owner

不会吧,能给个重现的例子么

@ShichenXie
Copy link
Owner

你先更新到github上面的版本试试呢

@ChenSir99
Copy link
Author

ChenSir99 commented May 16, 2023


微信图片_20230516181252

缺失值这箱的woe是-0.39,另外一箱的woe是0.50。但是用woe_ply转化后,就全变成0.50了。
代码是
bins = sc.wobin(train,y='tag',method='chimerge',special_values=[-999,-1111])
train_woe = sc.woebin_ply(train,bins)
(上周刚从github上下载的包)

@ChenSir99
Copy link
Author


微信图片_20230516181257

@ShichenXie
Copy link
Owner

有数据和对应代码么,能让我在本地电脑复现的

@shuaihangs
Copy link

Yeah same issue, I have the same problem where WOE values are not applied to the special values. This occurs when there is a -inf to inf for one bin and all other bins are special values like -9999, -999999, -999999999 where these values satisfy the condition -info to inf, but infact they have their own "special value" bin.

感觉像是负无穷到正无穷的优先级更高...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants