if len(set(dataSet[:,-1].T.tolist()[0])) == 1: #exit cond 1
TypeError: list indices must be integers or slices, not tuple
在测试树回归的时候,一直报这个错,找了很久的原因,后来发现是因为输入的数据集没有转为矩阵
TypeError: list indices must be integers or slices, not tuple
在测试树回归的时候,一直报这个错,找了很久的原因,后来发现是因为输入的数据集没有转为矩阵
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。