lukas / ml-class

Machine learning lessons and teaching projects designed for engineers

Home Page:https://www.youtube.com/channel/UCBp3w4DCEC64FZr4k9ROxig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in videos/seq2seq/train.py

alexandrovsky opened this issue · comments

Hi, when I run train.py, I get the following error:

Traceback (most recent call last): File "wandb-tutorials/ml-class/videos/seq2seq/train.py", line 131, in <module> guess = ctable.decode(preds[0], calc_argmax=False) File "wandb-tutorials/ml-class/videos/seq2seq/train.py", line 41, in decode return ''.join(self.indices_char[x] for x in x) File "wandb-tutorials/ml-class/videos/seq2seq/train.py", line 41, in <genexpr> return ''.join(self.indices_char[x] for x in x) TypeError: unhashable type: 'numpy.ndarray'

Any ideas how to fix this?