Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDFS/python logbert train #42

Open
2718455213wcx opened this issue Sep 25, 2023 · 3 comments
Open

HDFS/python logbert train #42

2718455213wcx opened this issue Sep 25, 2023 · 3 comments

Comments

@2718455213wcx
Copy link

Hello,when I run to this line of code:
logkey_seq_pairs = np.array(logkey_seq_pairs)
An error has occurred:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (4855, 1) + inhomogeneous part.

How can I solve it?

@Shown842
Copy link

I have the same problem。

@revraj1207
Copy link

In file: logbert-main\bert_pytorch\dataset\sample.py: Line no: 90 and 91, add extra argument dtype=object.
logkey_seq_pairs = np.array(logkey_seq_pairs, dtype=object)
time_seq_pairs = np.array(time_seq_pairs, dtype = object)

@vnaticzhock
Copy link

you should just downgrade numpy to the version specified at requirement.txt.

gssajith added a commit to gssajith/logbert that referenced this issue Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants