Week 1, Assignment 2, train model

i need help about 4th exercise , training the model. My loss is going up. Also The results are wrong. there is a problem about my implementation . Can anyone help to solve it?

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 = [None, 20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19, 0]

Hi @onur ,

Y should be taking value from X starting at x[1] and onwards. There should not be ‘None’ in Y.

thanks , the problem is solved when I cut out the “none” and its working well now. i think i did not clearly understand the usage of “none” at the beginning, but its clear now.

Great to hear the problem is solved. Thanks

1 Like