I cannot see where is the problem with that
from the code snippet
here is my pseducode
single_example = idx of examples
single_example_chars = list of char from single_example
single_example_ix = convert to idx from single_example_chars
example output:
here is the program output:
turiasaurus
['t', 'u', 'r', 'i', 'a', 's', 'a', 'u', 'r', 'u', 's']
[20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
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]
Iteration: 0, Loss: 23.054380
Nkzxwtdmfqoeyhsqwasjkjvu
Kneb
Kzxwtdmfqoeyhsqwasjkjvu
Neb
Zxwtdmfqoeyhsqwasjkjvu
Eb
Xwtdmfqoeyhsqwasjkjvu
...
Mgwuuueeeeeevfuuuallllssaangypdaaaasbaaaccaagbuuho
Hhhaaamseedotkteeeuuraxaahpaarsmadcaeetpiiillcomso
Ivuuudlboojxehhpallllssaangypdaaaasbaaaccaagbuuhoo
Maaaamseedotkteeeuuraxaahpaarsmadcaeetpiiillcomsoo
Yyyybkagmbyjsmsalkjgssabsjzgdaaaasbaaaccaagbuuhooo
Caaamseedotkteeeuuraxaahpaarsmadcaeetpiiillcomsooo
Uuueeeeeevfuuuallllssaangypdaaaasbaaaccaagbuuhooog
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-67-725c093d6b91> in <module>
1 parameters, last_name = model(data.split("\n"), ix_to_char, char_to_ix, 22001, verbose = True)
2
----> 3 assert last_name == 'Trodonosaurus\n', "Wrong expected output"
4 print("\033[92mAll tests passed!")
AssertionError: Wrong expected output