错误:too many indices for array

今天遇到的问题

原因是读入的y_train 是dataframe格式。应该读成series,保存为array即可。

原文地址:https://www.cnblogs.com/xflqm/p/8540205.html