Please change the shape of y to (n_samples,), for example using ravel().python3报错问题解决
A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().python3报错问题解决
本来需要一位向量,但是输入为列向量,所以找到出错的位置,应用ravel()函数即可。
产生错误的代码:
X_t...
原创
2019-11-04 15:37:46 ·
6280 阅读 ·
0 评论