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

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

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

猜你喜欢

转载自www.cnblogs.com/yuanxiaochou/p/12523067.html