HE2LaTeX icon indicating copy to clipboard operation
HE2LaTeX copied to clipboard

seq2seq.ipynb index 0 is out of bouds error

Open ktj4820 opened this issue 6 years ago • 1 comments

Train and test the seq2seq model run error

Seq2Seq.ipynb > run

x = xo[:,:26,:] y = yo[:,:26]

print(x[0])

run error message

IndexError Traceback (most recent call last) in () 2 y = yo[:,:26] 3 ----> 4 print(x[0])

IndexError: index 0 is out of bounds for axis 0 with size 0

ktj4820 avatar Feb 18 '19 10:02 ktj4820

But you have run the download.py script and

xo = np.load("iseq_n.npy")
yo = np.load("oseq_n.npy")

It perfectly works on my machine. Maybe you can give me some more information.

Wikunia avatar Feb 19 '19 10:02 Wikunia