TextClassify icon indicating copy to clipboard operation
TextClassify copied to clipboard

bug fix: error of array in sklearn

Open yonglam opened this issue 8 years ago • 0 comments

ValueError: Expected 2D array, got 1D array instead: array=[ 0. 0. 0. ..., 0. 0. 0.]. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

yonglam avatar Sep 27 '17 00:09 yonglam