lukas / ml-class

Machine learning lessons and teaching projects designed for engineers

Home Page:https://www.youtube.com/channel/UCBp3w4DCEC64FZr4k9ROxig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rnn.py no longer breaks as expected when adding units

charlesfrye opened this issue · comments

In the RNN prediction video, a shape error is generated when the RNN outputs a 5-element hidden state when it should be outputting a 1-element hidden state.

Weirdly enough, in a more recent version of Keras, this error no longer occurs.

I suspect some weirdness is happening inside the loss function calculation.

Interestingly, the predictions on the validation data no longer line up, as can be seen in this project.