首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
dataconversionwarning专题
使用sklearn训练模型出现【DataConversionWarning: A column-vector y was passed when a 1d array was expected】
问题 DataConversionWarning: 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().clf.fit(x,y) 貌似是因为fit()第二个参数(也就是label)必须
阅读更多...