写决策树时遇到的坑

代码如下:

错误提示:

 

解决办法:将 featureList.append(rowDict) 不放在第二个循环当中

 

posted @ 2018-01-07 10:08  GuoKevin  阅读(191)  评论(0)    收藏  举报