It is on Class 1, Week 3 Practice Lab: Logistic_Regression. (The cell is right above “2.5 Gradient for logistic regression”). See the attached screen shot for more details. Thanks!

Hey @Teofilo_Percy_Landa,
And if you are unable to find the error, please DM your notebook as an attachment to me. For downloading your notebook, follow the Method-1 in this thread.

I this the exercise again following the guidelines in “Click for hints”. I was able to resolve the issue by doing it again. Sharing the notebook with the mentor is another way to resolve the error.

Hey @John6,
Welcome to the community. Can you please DM your notebook to me as an attachment? Please follow the instructions listed under Method-1 on this thread to download your notebook.

P.S. - Posting code publicly is against the community guidelines, so, please refrain from doing so.

Hey @Asuri,
I am glad you were able to determine the solution on your own. I am assuming you are not talking about the fifth exercise, i.e., compute_cost_reg, because if you are, in that function, you are supposed to use lambda_, after all it’s a key part of regularization. If you have solved your problem by removing lambda_, then, the issue lies somewhere else, and by chance, removing lambda_ seems to be helping you.

Additionally, in the code that you DM’d to me, you are again implementing the cost without regularization. For that, you can simply call the previously implemented compute_cost function. I hope this helps.