Open
Description
Hi sometimes when trying to predict some values my it gaves me the next error:
Expected 2D array, got 1D array instead:
array=[].
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.
It's says my array is 1D when I read a .csv with pandas that contains more than 5000 values.
I don't know what can be wrong, my data are names of authors, and there's nothing strange, I have fit with more than 60000 and then try to predict and works with some values and don't with other, may be some kind of bug?
Metadata
Metadata
Assignees
Labels
No labels