Skip to content

bug fix: error of array in sklearn#3

Open
yonglam wants to merge 1 commit intosinb:masterfrom
yonglam:master
Open

bug fix: error of array in sklearn#3
yonglam wants to merge 1 commit intosinb:masterfrom
yonglam:master

Conversation

@yonglam
Copy link
Copy Markdown

@yonglam yonglam commented Sep 27, 2017

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.

ValueError: Expected 2D array, got 1D array instead:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant