L_model_backward

boolean index did not match indexed array along dimension 0; dimension is 3 but corresponding boolean dimension is 1

Can anyone help me to solve this problem?

Hello @adinandra12caesar,

I don’t immediately see where you might have made an error. Can you post your code for L_model_backward?

Also, make sure you have passed all the tests for the functions before so we know where to look :slight_smile:

Removed code. Removed code.

Thx, can I have linear_activation_backward and linear_backward as well?

Removed code. Removed code.

I don’t see it yet. Can you download the notebook and send it to me as a PM?

That was a hard one for me to find…

You have a typo at

        currect_cache = caches[l]

:sweat_smile:

Thank you for your help, it works. I didn’t even notice the typo.