Regarding the error

I am not able to get the error reduction as shown in the video but my code is running perfectly fine can u help me out pls
the following link Is the link of my code
https://drive.google.com/file/d/1TMH5iBqXe_yS625KGoa_hM4BqFfH6c6m/view?usp=sharing

Hey @bhavyahoda, I checked your code thoroughly. I was able to find one mistake. In your
def error(X,y,theta) function. You have calculated the error as
e+=(y-y_)**2. But actually it has to be

 e += (y[i] - y_)**2

So please make this change and I hope you will see decreasing error ! :slightly_smiling_face:
I am sorry for keeping your doubt pending for so long :sweat_smile:

I hope you understand ! :slightly_smiling_face:
Happy Learning :slightly_smiling_face:

1 Like

yep I corrected it and it worked
thank u so much
and no issue for pending doubts
u are helping that is in itself a big thing
thanks

1 Like

Great, I hope I was able to resolve your doubt !

Please mark the doubt as resolved in your doubts section and do give the feedback as per our interaction ! :+1:

Thanks and Happy Learning ! :slightly_smiling_face:

1 Like