Logistic Regression code error-W2

Why there’s an erorr in the costs values?

{moderator edit - solution code removed}

In this community, posting your code is prohibited. Please remove it.

In your model(), you have several hard-coded variables. See parameters for optimize(). All parameters like num_iterations, learning_rate, print_cost ,… are passed from a caller. You should not override any. I think you misunderstood the meaning of “default arguments” that you see at model(). Those are only used if “default arguments” are not set by a caller. You do not need to take care.

Hope this helps.

1 Like

Thank you
I’m very sorry