Hi, I’m working through the last lab for course 1 but I’m stuck on 2.4 Cost function for logistic regression, Exercise 2. I can’t get my cost at initial w (zeros) to match up with the expected output of 0.693, any advice would be greatly appreciated. I even used the hints but I’m still getting 0.007 and not 0.693 Thanks!

Nice! @danderson, now that you have this resolved, I’ve removed the code from your original post since it is against the community guidelines to share any code that might be related to assignments.