Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

ValueError: Expected 2D array, got scalar array instead: array=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.

Terrible Thrush answered on April 22, 2022 Popularity 9/10 Helpfulness 3/10

Contents


More Related Answers

  • ValueError: cannot reshape array of size 266084 into shape (221,301,3)
  • ValueError: cannot reshape array of size 98292 into shape (16382,1,28) site:stackoverflow.com

  • ValueError: Expected 2D array, got scalar array instead: array=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.

    1
    Popularity 9/10 Helpfulness 3/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on Apr 22 2022
    Terrible Thrush
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.