Week 1 Assignment 1:Building your Recurrent Neural Network - Step by Step

You must have accidentally removed one of the comment lines in one of the graded function cells. UNQ_C2 corresponds to the function rnn_forward. Here’s what the first 4 lines of that cell should look like in a clean notebook:

# UNQ_C2 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
# GRADED FUNCTION: rnn_forward

def rnn_forward(x, a0, parameters):

You must have removed at least the first one of those lines. Turns out they weren’t kidding when they said “DO NOT EDIT”. :nerd_face:

You can either just copy the code as I showed it above, but if you’re worried about other accidental changes, you can start with a clean copy and then carefully “copy/paste” over just your completed code. There are instructions for getting a clean copy on the DLS FAQ Thread.