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)
使用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)必...