In the 3rd exercise (gradient descent) my value for dj_db at initial w and b (zeros) does match the expected output but my dj_dw at initial w and b does not. In the hints I checked my code and everything seems to be correct. What could be wrong?
Please do not post your code on the forum. That’s not allowed by the Code of Conduct.
I have edited your message to remove the code.
The best course of action is to describe the situation, and post a screen capture image of your test results, or any error messages that the notebook generates.
If a mentor needs to see your code, we’ll contact you with instructions.
Tip: The bias value ‘b’ should only be added once - not inside your loop over the features.
Tip2: Check your indentation, some of the columns don’t line up correctly.
Even when I put the b value outside the loop and check any indentation, the outcome stays the same.
dj_db at initial w and b (zeros):-0.1
dj_dw at initial w and b (zeros):[-0.3738794650046383, -0.4476490644756638]