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.