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

系数正负问题 #112

Open
lionking19063 opened this issue Feb 7, 2024 · 6 comments
Open

系数正负问题 #112

lionking19063 opened this issue Feb 7, 2024 · 6 comments

Comments

@lionking19063
Copy link

老师您好. 我用scorecardpy产生出来的 woe变量建造logistic regression(event='1')模型,得出来的系数全为正,但用同样的数据另外一个woe api得出来系数全为负数。请问从scorcardpy出来的系数应该为正还是为负?谢谢。

@ShichenXie
Copy link
Owner

正。因为这里的woe是按照坏比好定义的。你说的另外一个woe api可能是好比坏。你可以对比一下两个woe的计算方法。

@GreeyiSaEs
Copy link

你好,在调用sc.woebin进行卡方分箱时,有时会出现一个bug,得到的df的第一列variable是一长串“[[[array([array..."的乱码,但是树分箱就不会出现

@ShichenXie
Copy link
Owner

能给一个复现的例子么

@GreeyiSaEs
Copy link

大佬 能私下发你吗 图片上有水印

@GreeyiSaEs
Copy link

你好,在调用sc.woebin进行卡方分箱时,有时会出现一个bug,得到的df的第一列variable是一长串“[[[array([array..."的乱码,但是树分箱就不会出现

测试了一下,在python3.6用scorecard不管是0.1.9.2还是0.1.9.7都没有这个问题,但是python3.9就会出现,但是树分箱就没有很奇怪,感觉是兼容的问题

@ShichenXie
Copy link
Owner

大佬 能私下发你吗 图片上有水印

发我邮件呗

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