Question regarding the course 1 week 3 logistic regression Lab

Hi everyone,

When I was writing the compute_cost part of the lab, I ran into a weird bug that my code passed one test but failed another, can anyone please help me with it?

Hi @Yichen_Guo1, nice work, but compute_cost doesn’t require us to include regularization yet. compute_cost_reg will.

ohh thx, I saw the lambda in the function and thought I needed the regulation. Thx!

No problem. Issue resolved. Thread closed.