Open 2718455213wcx opened 1 year ago
I have the same problem。
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)
you should just downgrade numpy to the version specified at requirement.txt.
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?