Hey there
I found already some other topics about this Exercise, but none seems to fit my problem: In my opinion i have implemented the right functions. But i do get error messages that the results do not match. Could you please point me out, what i oversee? (I post this as well because i have read there were some issues with the test)

It was a problem with the calculation of the activation matrix. I never checked this one before and just found out, that i had some issue there. Maybe this helps others as wellβ¦

I experienced a similar issue as @Michael_Lappert but the error I received was βWrong values for costβ function. I have tried computing the loss using different ways over the past couple of days now but unfortunately, I still keep getting this same error. Please can any one help

Are you sure that you are applying the correct formula into the equations?

Forward Propagation:
You get X
You compute π΄=π(π€ππ+π)=(π(1),π(2),...,π(πβ1),π(π))
You calculate the cost function: π½=β1πβππ=1(π¦(π)log(π(π))+(1βπ¦(π))log(1βπ(π)))
Here are the two formulas you will be using:
βπ½βπ€=1ππ(π΄βπ)π(7)
βπ½βπ=1πβπ=1π(π(π)βπ¦(π))(8)

Yes, that was the issue. The cost function formula was correct just that I transposed the wrong matrices. I already fixed it. Thanks for the assistance

If this is your first encounter with the βassertβ statement in python, it is checking for a condition that is supposed to evaluate to True (boolean) and it fails or βthrowsβ if it is not true. So what is the condition that is failing in your case? It is shown by the statement:

So your b value is supposed to be a python float, but it isnβt. So how did that happen? You probably assigned b with the value 0, but that is an integer value in python. Note that 0 and 0. are not the same thing in python. That decimal point makes the value a floating point number.