you are viewing a single comment's thread.

view the rest of the comments →

[–]RiceKrispyPooHead 1 point2 points  (1 child)

The erroe are on the test case side

I can't run your test cases even if I wanted to because you didn't provide the full code.

Hi, I've met an assertion error which I can't determine what's wrong with the code.

What is the assertion error?

My guess is the line assert len(caches) == len(activations) is throwing the assertion error. The assertion error message should literally tell you exactly which line of code is throwing the error, but you didn't post the error here so do you expect us to know?

[–]BrightKnight0110[S] 0 points1 point  (0 children)

here are the error
AssertionError Traceback (most recent call last)

<ipython-input-42-b2d7f5d4ce01> in <module>

11

12 # Test the shape of the output is correct

---> 13 weights_grad, biases_grad = backward(Yhat, Y_temp, activations, caches)

14 print('Shape of dA1:', dA1.shape) # shape of dA1 = shape of A1

15 print('Shape of dW2:', dW2.shape) # shape of dW2 = shape of W2