Sequence Models Week 1 Assignment 1

It looks like you have modified that test cell. It does not look like that in my copy of the notebook. Here’s what I see for the line that invokes rnn_cell_forward:

a_next_tmp, yt_pred_tmp, cache_tmp = rnn_cell_forward(xt_tmp, a_prev_tmp, parameters_tmp)

See the difference? In your case the first and second arguments are different. So how did that happen? Just generally speaking it’s not a good idea to modify the test code. If the test fails, the solution is not to change the test: it is to figure out why your code fails the test.

If you want to get a clean copy of the notebook and start over, there is a topic about that on the FAQ Thread.