Week #01 - Programming Assigment #01 Building_a_Recurrent_Neural_Network_Step_by_Step

II started working on programming assignment. In exercise 7 there is a problem with the indices.
I attach text of the equations and a piece of the code.
Equation (7, 8, 9, 10) for gates, the subscript is (f, u, o) but in the code the subscript is (ft, it, ot)

Code:

Retrieve information from “cache”

(a_next, c_next, a_prev, c_prev, ft, it, cct, ot, xt, parameters) = cache

Could someone check if that’s right?

I would appreciate it if you could help me. Thank you.

That line of code appears to be correct.

Please post an image of the issue you’re asking about, with markup showing the area of your question.

Please do not post your code. That isn’t allowed on the forum.

I am sorry @TMosh. The piece of code is part of the exercise, it’s not my code. I attach the image inside a pdf document.
gates.pdf (127.0 KB)

Now, I attach only image.

    # Retrieve information from "cache"
    (a_next, c_next, a_prev, c_prev, ft, it, cct, ot, xt, parameters) = cache

Yes, that is a line that they just gave you in the template code. There should be no need to touch it: just use it as is.

The python variable names they use do not necessarily agree with the mathematical notations that they used. They explained that in the instructions.

1 Like

Thank you very much, @paulinpaloalto.

It could be of great help to those of us who are taking the course. Have a mapping of the mathematical formulas and the name of the variables found in the template. Although there are some within the instructions, it is difficult to relate them all. It could be very helpful to incorporate them as comments in the template code. Thank you again for your help!

Luis Millao