ValueError:Expected 2D array, got 1D array instead:
使用sklearn报错ValueError:Expected2Darray,got1Darrayinstead:clf.predict([4.4,3.2,1.3,0.2])ValueError:Expected2Darray,got1Darrayinstead:array=[4.43.21.30.2].Reshapeyourdataeitherusingarray.reshape(-1,1)ify