8000 Reshape if sinlge value when havinf several values · Issue #29 · fritshermans/deduplipy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Reshape if sinlge value when havinf several values #29
Open
@AlexAdolfoKohan

Description

@AlexAdolfoKohan

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0