W1 A2 Dinosaurus_Island_Character_level_language_model model() error

Hi, for Exercise 4, i managed to compile it without error, however when completed the iterations, the output is slightly different and returns an error.

Iteration: 22000, Loss: 22.814105

Onuuspendtkexiosaurus
Miedahson
Mustreomosaurus
Ola
Xusoimeosaurus
Gaadromachusaurus
Troceriolsaurus


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

The output is very similar but i couldn’t find where did i do wrongly. I suspected it has something to do with the random seed but i didn’t change any of them. Would be very grateful with any help or advices, thank you

Hi @chunyang007

Similar issues have been raised by other learners. Have a look at the queries posted at the Forums, you may well find the answer to your problem.