Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Typo error in code of article "Build a Recurrent Neural Network from Scratch in Python – An Essential Read for Data Scientists"

$
0
0

Hello,
I was trying to implement an RNN for series forecasting by reading your very well written article (https://www.analyticsvidhya.com/blog/2019/01/fundamentals-deep-learning-recurrent-neural-networks-scratch-python/) and noticed that there is a possible error in Step 2.1 in line:

loss = loss / float(y.shape[0])

where I believe it should have been:

loss = loss / float(Y.shape[0])

also in Step 2.2 line:

val_loss = val_loss / float(y.shape[0])

I believe should have been:

val_loss = val_loss / float(Y_val.shape[0])

I hope I got it right!

Respectfully yours,
Mars

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles