I am getting an assertion error “wrong values in a” and I am trying to figure out my mistake.

What I have done so far:

  1. Initialize a, and y_pred with zeros of shape (na,m,Tx) for a, and (ny,m,Tx) for y_pred using numpy.zeros() function.

  2. Initialize a_next to function parameter a0

  3. Loop for each t in T_x range:

  • get xt by slicing function parameter x, thinking is get all the first dimension, get all the second dimension, get only the t, third dimension.
    -run rnn_cell_forward with xt,


What you have done is fine. But what are the other parameters passed to rnn_cell_forward(), and what about the rest of the code in the ‘for’ loop?