Dinosaur Island Char Model

Hi paulinpaloalto and TMosh,

thank you for your feedback. That actually solved it!! Thank you :slight_smile:

For completeness and others who may encounter the problem:

Problem

Iteration: 22000, Loss: 20.578871

Hutusaurus
Euca
Eustrioppn
Hocamptopanceus
Xuspeodon
Elacropechus
Uspeodon


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

Expected output


Iteration: 22000, Loss: 22.728886

Onustreofkelus
Llecagosaurus
Mystolojmiaterltasaurus
Ola
Yuskeolongus
Eiacosaurus
Trodonosaurus

Solution
Probably using the non shuffled input data:

single_example = data_x[idx]

Change to use shuffled input data:

single_example = examples[idx]

For more info see: Here

1 Like