Skip to content

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (27, 2) + inhomogeneous part. #5

Description

@yyara

Shuffling Randomly and Converting into Numpy Array for Faster Processing......

ValueError Traceback (most recent call last)
Cell In[22], line 3
1 print("Shuffling Randomly and Converting into Numpy Array for Faster Processing......")
2 random.shuffle(training)
----> 3 training = np.array(training)
5 print("Creating Train and Test Lists.....")
6 train_x = list(training[:,0])

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (27, 2) + inhomogeneous part.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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