File "E:\Python36\regtree.py", line 45, in chooseBestSplit
    if len(set(dataSet[:,-1].T.tolist()[0])) == 1: #exit cond 1

TypeError: list indices must be integers or slices, not tuple

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

相关文章:

  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案