I am getting an assertion error for the last part of the exercise.
The single example output is:
j = 0 idx = 0
single_example = aachenosaurus
single_example_chars [‘a’, ‘a’, ‘c’, ‘h’, ‘e’, ‘n’, ‘o’, ‘s’, ‘a’, ‘u’, ‘r’, ‘u’, ‘s’]
single_example_ix [1, 1, 3, 8, 5, 14, 15, 19, 1, 21, 18, 21, 19]
X = [None, 1, 1, 3, 8, 5, 14, 15, 19, 1, 21, 18, 21, 19]
Y = [1, 1, 3, 8, 5, 14, 15, 19, 1, 21, 18, 21, 19, 0]
The last output is:
Iteration: 22000, Loss: 20.578871
Hutusaurus
Euca
Eustrioppn
Hocamptopanceus
Xuspeodon
Elacropechus
Uspeodon
NOTE: I shut down the project and restarted. Upon re-executing, I had the same error.
Can you take a look at my code?