Open Leo-Lee15 opened 6 years ago
Thank you for your suggestion. I will read the repo and the referenced article. If it is reasonable, I will add it into the package. This might take some time.
According to my experience, some variables wouldn't be monotonic after woe binning. For example, the default rate at different hours in a day, always peak at midnight and afternoon.
Yes, it is too difficult to get a monotonic result for some variables. But at least, this algorithm provides a way to achieve the desired results less troublesome.
Anyway, thanks for your effort to this nice package!
I use 'woebin' to bin the variables with my data. The error 'you are trying to merge an object and float64 columns. If you wish to proceed you should use pd.concat' appeared. I compared my variable type with yours, there existed 'object' type in your data too. But why using your data are there no error and my data error? Do you have any suggestions for me?
I use 'woebin' to bin the variables with my data. The error 'you are trying to merge an object and float64 columns. If you wish to proceed you should use pd.concat' appeared. I compared my variable type with yours, there existed 'object' type in your data too. But why using your data are there no error and my data error? Do you have any suggestions for me?
You are using python version package? Please open an issue in scorecardpy
repo and provide a reproducible example.
Thank you for your answer and i use python 3.7 to run the code. The error is as follows:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2961, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "
你到scorecardpy那个项目新建一个issue吧。然后给一个可重现的例子,不然我没法知道你碰到了啥问题。
hi,shichenxie, 在woebin.py中binning_tree变量没有初始化,有时会报错,加上“binning_tree = None”可以解决问题
我看看,这个问题
Dear ShichenXie 我在运行woebin函数时弹出错误,提示没有"data.table"函数,但我后面library(data.table)后还是如此提示,不知道什么原因。如下图:
我在运行woebin函数时弹出错误,提示没有"data.table"函数,但我后面library(data.table)后还是如此提示,不知道什么原因。如下图:
重启一下R,再试试看。如果你在windows环境下,确认是否安装了rtools。
我在运行woebin函数时弹出错误,提示没有 “data.table” 函数,但我后面库(data.table)后还是如此提示,不知道什么原因如下图:
重启一下R,再试试看。如果你在视窗环境下,确认是否安装了rtools。
我想弱弱的问下,rtools是什么意思。 我确实是win10 64位环境,安装了64位的r和64位的rstuido,r是3.5.2版本。 我在woebin的帮助文件中,按照帮助文件,运行 bins2_tree = woebin(germancredit, y="creditability",x=c("credit.amount","housing"), method="tree")能正确运行,但运行bins_germ = woebin(germancredit, y = "creditability") 就会提示...没有"data.table"这个函数...
我在运行woebin函数时弹出错误,提示没有 “data.table” 函数,但我后面库(data.table)后还是如此提示,不知道什么原因如下图:
重启一下R,再试试看。如果你在视窗环境下,确认是否安装了rtools。
我想弱弱的问下,rtools是什么意思。 我确实是win10 64位环境,安装了64位的r和64位的rstuido,r是3.5.2版本。 我在woebin的帮助文件中,按照帮助文件,运行 bins2_tree = woebin(germancredit, y="creditability",x=c("credit.amount","housing"), method="tree")能正确运行,但运行bins_germ = woebin(germancredit, y = "creditability") 就会提示...没有"data.table"这个函数...
你看看CRAN网站上的Download R for Windows,里面第四个就是
我在运行woebin函数时弹出错误,提示没有 “data.table” 函数,但我后面库(data.table)后还是如此提示,不知道什么原因如下图:
重启一下R,再试试看。如果你在视窗环境下,确认是否安装了rtools。
我想弱弱的问下,rtools是什么意思。 我确实是win10 64位环境,安装了64位的r和64位的rstuido,r是3.5.2版本。 我在woebin的帮助文件中,按照帮助文件,运行 bins2_tree = woebin(germancredit, y="creditability",x=c("credit.amount","housing"), method="tree")能正确运行,但运行bins_germ = woebin(germancredit, y = "creditability") 就会提示...没有"data.table"这个函数...
你看看CRAN网站上的Download R for Windows,里面第四个就是
谢谢。我去了解下,但目前的情况是bins2_tree = woebin(germancredit, y="creditability",x=c("credit.amount","housing"), method="tree")一直到bins_width = woebin(germancredit, y="creditability", x=numeric_cols, method="width") 都能正常运行,就是bins_germ = woebin(germancredit, y = "creditability") 运行弹出那个错误。。。
你建议我先卸载scorecard这个包,然后再从github装最新的吗?
我在运行woebin函数时弹出错误,提示没有 “data.table” 函数,但我后面库(data.table)后还是如此提示,不知道什么原因如下图:
重启一下R,再试试看。如果你在视窗环境下,确认是否安装了rtools。
我想弱弱的问下,rtools是什么意思。 我确实是win10 64位环境,安装了64位的r和64位的rstuido,r是3.5.2版本。 我在woebin的帮助文件中,按照帮助文件,运行 bins2_tree = woebin(germancredit, y="creditability",x=c("credit.amount","housing"), method="tree")能正确运行,但运行bins_germ = woebin(germancredit, y = "creditability") 就会提示...没有"data.table"这个函数...
你看看CRAN网站上的Download R for Windows,里面第四个就是
我在另一个电脑上,R的版本是3.4.2.可以正常运行所有的函数。。。也不晓得是什么原因
我在另一个电脑上,R的版本是3.4.2.可以正常运行所有的函数。。。也不晓得是什么原因
后面的朋友别在这个issue里面提问题了啊。有问题重新开一个new issue。这个issue是因为一直还没解决所以没有关闭。
This Github Repo by Wensui Liu also has some MonotonicBinning implementations in R.
我也希望scorecard包加入单调分箱的功能作为 分bin的选项
If WOEBIN doesn't return monotonic bins, does that compromise the interpretability of the WOE/IV values? Is it up the user to rebin?
单调分箱的功能什么时候能加入啊?
If WOEBIN doesn't return monotonic bins, does that compromise the interpretability of the WOE/IV values? Is it up the user to rebin?
The woebin_adj function provides an interface to adjust the binning results manually.
单调分箱的功能什么时候能加入啊?
等回头我再研究研究啊
Hello,
I just discover a Github repo, jstephenj14/Monotonic-WOE-Binning-Algorithm, which provides a Python implementation of a variable binning algorithm that optimizes information value (IV) monotonicity and representativeness.
I think it would be great to include this algorithm is your fantastic package
scorecard
. Since the author provides the Python version, I wonder if it could be incorporated into youscorecard
R package.Thanks!