C1_W2_Linear_Regression | Exercise 2 | AssertionError

Here i got this error


Could please help me.
I had rechecked multiple of time and dj_dw is implemented as per below formula
image

I recommend you check your code again.
If you implement the code correctly, you will get the correct results.

I had checked so many time and it is as per formula but count figure it out why that error

For others who find this thread:
Be careful that you are accumulating the dj_dw value over all of the examples.

1 Like