DLS c5 w1 assign 2 - model Error

I’m getting this error:
AssertionError: Wrong expected output
this is the id of the notebook NaIA5 ,just in case.

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.084047

Nkzxwtdmfqoeyhsqwasjkjvu
Kneb
Kzxwtdmfqoeyhsqwasjkjvu
Neb
Zxwtdmfqoeyhsqwasjkjvu
Eb
Xwtdmfqoeyhsqwasjkjvu

Llllllllllllllllllllllllllllllllllllllllllllllllll
Llllllllllllllllllllllllllllllllllllllllllllllllll
Qjjffffffffjjjjjjjjjjwwwwwqfssssssssssssssssssssss
Zzzzzzzzzzzzzzzwwwwwwwffffwwwffffqffffffffffqqjjjj
Ffffffffffjjjjjjjjjjwwwwwqfsssssssssssssssssssssss
Xxxxxxxxxxxxxxwwwwwwwffffwwwffffqffffffffffqqjjjjj


AssertionError Traceback (most recent call last)
in
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

If you’re using the coursera jupyter environment for solving the assignment, please click my name and message your notebook as an attachment.

In the model function, please look at your call to the optimize method. Why are you passing X[1:]?

Before this I had an error related to “None”, so I thought I had to reflect the offset between x and y.
Thank you very much for the help, even on a Sunday.

I’m getting the same issue, i’m not doing an X[:1].

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.087336
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-80-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

I can’t figure out what i’m doing wrong

Please click my name and message your notebook as an attachment.

idx is initialized incorrectly. See the markdown section: Set the index idx into the list of examples to fix ths mistake.