金融信贷风控的机器学习实战 代码运行溢出

Traceback (most recent call last):
  File "scorecard.py", line 216, in <module>
    minBinPcnt=0)
  File "/Users/edwin/dev/scripts/hadoopcn/finance/第二和三课代码/scorecard_functions_V3.py", line 128, in ChiMerge
    groupedvalues = df2['temp'].apply(lambda x: AssignBin(x, cutOffPoints))
  File "/Users/edwin/Library/Python/2.7/lib/python/site-packages/pandas/core/series.py", line 2355, in apply
    mapped = lib.map_infer(values, f, convert=convert_dtype)
  File "pandas/_libs/src/inference.pyx", line 1574, in pandas._libs.lib.map_infer (pandas/_libs/lib.c:66645)
  File "/Users/edwin/dev/scripts/hadoopcn/finance/第二和三课代码/scorecard_functions_V3.py", line 128, in <lambda>
    groupedvalues = df2['temp'].apply(lambda x: AssignBin(x, cutOffPoints))
  File "/Users/edwin/dev/scripts/hadoopcn/finance/第二和三课代码/scorecard_functions_V3.py", line 271, in AssignBin
    if x<=cutOffPoints[0]:
IndexError: list index out of range

田野

赞同来自:

你好,请将数据集发给我,谢谢

要回复问题请先登录注册