Dear All,

I have double-checked my code and made sure that the initial value of w and b is correct. However, I am still encountering an error when running the public_tests. I would greatly appreciate it if someone could assist me in resolving this issue. Thank you in advance for your help.


It is not the job of the compute_cost() function to do this.
Your code must use the w and b values that are provided as parameters.

Thanks for the response; I found the mistake in the function. Now it is running without errors.

Even i am getting the same error for the code. Can some one elaborate it, what should i do to get the correct code.

I recommend you read the Hint code and details that are just after the cell with the compute_cost() function.

thank a lot that i am getting it right now

That’s good news!