Multivariate linear regression

i’m having problem in making multivariate linear regression model ,
as the error is not decreasing , instead it is increasing exponentially,i’m not getting where i am making the mistake …please help me out as soon as possible


here is the link to the code

The possible reason behind this is that weight updation is not done correctly or gradients of weights are exceptionally high.
Possible solution: change line 24 to “return grad/m”

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.