Skip to content

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. #33

@Gshaoo

Description

@Gshaoo

Hello, boathit, I am a beginner in trajectory mining. When I was training, I encountered a problem that could not be solved. I hope to get your answer. The problem is :
Traceback (most recent call last):
File "t2vec.py", line 121, in
train(args)
File "/home/ubuntu/gsh/t2vec-master/train.py", line 177, in train
trainData.load(args.max_num_line)
File "/home/ubuntu/gsh/t2vec-master/data_utils.py", line 155, in load
self.srcdata = list(map(np.array, self.srcdata))
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5453003,) + inhomogeneous part.

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