In this assignment, after compiling the model and before fitting it, there is a small code snippet which swaps the axes of Y_oh to bring it to a suitable output format before training.
The description before this cell seems a bit confusing. Here is a picture of the description
In the 3rd point, shouldn’t it say
Given the model()
you coded, you need the “outputs” to be a list of 10 elements of shape (m, len(machine_vocab)).
- The list
outputs[0][i], ..., outputs[Ty][i]
represents the true labels (characters) corresponding to the 𝑖𝑡ℎith training example (X[i]
). -
outputs[j][i]
is the true label of the 𝑗𝑡ℎjth character in the 𝑖𝑡ℎith training example.
I may be wrong. Please correct me if I’m wrong!