Skip to content

Expected 2D array, got 1D array instead #1

@thomasd3

Description

@thomasd3

Hi,
Trying to run your code, I get the following error:

File "/Library/Python/2.7/site-packages/sklearn/utils/validation.py", line 441, in check_array
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[ 304.8 288.1 324.65 315.6 313.15 315.35 326.75 335.75 323.15
324.65 327.4 327.4 354. 338.25 333.7 345.6 343.35 345.65.....

Are there specific version of the packages that I need that could be the problem?

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