scorecardpy icon indicating copy to clipboard operation
scorecardpy copied to clipboard

Scorecard Development in python, 评分卡

Results 47 scorecardpy issues
Sort by recently updated
recently updated
newest added

I am working with another version of the dataset where, for exmaple "Purpose" was changed from qualitative to categorical, where: ``` car (new) -> 0 car (used) -> 1 furniture/equipment...

Hi, iv_xy function replaces 0 with 0.9 in order to calculate information value. Would it be more appropriate to replace with a value closer to 0 , let's say 0.01?

question

您好!在学习sc包的过程中,遇到了问题。 sc.woebin的示例中数据集中加入了空值,使下述special_values 可以分箱。 special_values = { 'credit.amount': [2600, 9960, "6850%missing"] } 但是在数据集的'credit.amount'列数值没有空值的情况下,想要得到"6850%missing"的分箱,会出现报错: ValueError: cannot convert float NaN to integer (在sc的示例中加入了上述special_values ,出现了问题,遂查询了woebin的函数,woebin的示例没有问题,遂对比学习了一下) 虽然一般情况下不会有这样的分箱,但是出现了bug。

Thank you for python version! My issue is about woebin_adj function: ``` def menu(i, xs_len, x_i): ... adj_brk = input("Selection: ") adj_brk = int(adj_brk) if adj_brk not in [0,1,2,3]: warnings.warn('Enter...

Hi! Woebin_adj function returns string, but it should return dict

AttributeError: 'DataFrame' object has no attribute 'distr'

Trying to run on a MS SQL server instance using the german credit dataset. Error as below: multiprocessing.pool.RemoteTraceback: """ Msg 39019, Level 16, State 2, Line 137 An external script...

我直接在var_filter.py的文件里改了。 这样就可以避免,‘’如果有布尔列或者含有布尔列的数据时,生成列表时会出错的情况。‘’ 我也已经测试过了。missing的情况不影响呀。 因为我这里,只是仅仅在数据处理的开始,将对象型和布尔型数据,转换成字符串式的对象型数据。对于整体的函数运行应该没影响。 并且,对于离散型数据的分箱,标准数据类型应该就是字符串吧?~ 希望谢老师有空看看哈~~~如果想法不对,希望谢老师能够指正。

#ax1.legend((p1[0], p2[0]), list(distr_prob.dates.levels [1]), loc='upper left'). I have a question: No change is made to the legend in the graph after removing the first parameter' (p1[0], p2[0]) '. Excuse me,...

执行安装命令pip install scorecardpy后,运行Example代码报错, 出错语句为: # woe binning ------ bins = sc.woebin(dt_s, y="creditability") 报错信息: TypeError: unhashable type: 'numpy.ndarray'