list indices must be integers or slices, not tuple解决方案

用numpy里的array转化下,转成元组 :  dataSet=np.array(dataSet)

或者将dataSet转化为矩阵:mat(dataSet)

posted @ 2020-03-19 11:40  袁小丑  阅读(31141)  评论(0编辑  收藏  举报