Hi everyone,
I’m getting very close to the right output in the final model and not sure what I’m doing wrong.
I’m doing the assignment locally on vscode, so I hope that’s not what’s causing the ever so slight discrepancy.
I’m getting
j = 0 idx = 0
single_example = turiasaurus
single_example_chars ['t', 'u', 'r', 'i', 'a', 's', 'a', 'u', 'r', 'u', 's']
single_example_ix [20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
X = [None, 20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
Y = [20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19, 0]
and
Iteration: 22000, Loss: 22.784517
Niustreogoneurosaurus
Llecaeosaurus
Lyrosaurus
Necacosaurus
Yusodondostesauqus
Eiadosaurus
Trocemitetes
where the expected is:
Iteration: 22000, Loss: 22.728886
Onustreofkelus
Llecagosaurus
Mystolojmiaterltasaurus
Ola
Yuskeolongus
Eiacosaurus
Trodonosaurus
Any help would be really appreciated, Thanks!
UPDATE
I uploaded to the coursera juptyer and tried there and it worked. I guess it was due to a mismatch in the environments, maybe python version, library versions or something similar?