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
在测试树回归的时候,一直报这个错,找了很久的原因,后来发现是因为输入的数据集没有转为矩阵