The instructions for creating ‘X’ in the final code block (in function model) state:
Create the list of input characters:
X
rnn_forwarduses theNonevalue as a flag to set the input vector as a zero-vector.- Prepend the list [
None] in front of the list of input characters.
However, the last line is wrong, and should be as follows:
- Prepend the list [
None] in front of the list of input character indices. (Emphasis added.)
This is important. The list ‘single_example_chars’ contains input characters and the list ‘single_example_ix’ contains input character indices. If you confuse the two, as the instructions do, you will get an error. (I encountered this error.)
Request: course staff, can you please update instructions as I have proposed above? Thanks!