In the future, please don’t post your code on the forum. That’s not allowed by the Code of Conduct. If a mentor needs to see your code, we’ll contact you privately with instructions.
Hints:
Remove the print() statements you have added. Their outputs will clog up the grader.
In the concat calculation, the “axis=0” is not necessary.
The c_next and a_next calculations should not use np.dot(). Use the * operator instead. Do not use any transpositions there.
In the yt_pred calculation, don’t use a transposition.
Tom has answered everything, but it looks like you misinterpreted several of the math formulas. For future reference, it’s important to understand the notational convention that Prof Ng uses for matrix multiplication: if he just write the operands adjacent to each other with no explicit operator, then it is “real” matrix multiply (meaning dot product style with np.dot). When he means elementwise multiply, he consistently uses * as the operator. In that case you use np.multiply or * to express that in python/numpy.
Please go back and look at the way the formulas for c_next and a_next are specified in the instructions with what I just described in mind.