i have followed all the steps as prateek bhaiya has told us …but i am not getting accurate result…
the code is similiar to that he told in multiple linear regression
Air pollution regression
The first and foremost thing, keep in your mind that always make loss function and that is the only way to judge things are going right or not. Don’t try to shorten your work by such things. What if learning rate was quite high, how will you judge your model was correct or not.
So now first write loss function, and make the plot of training loss for every epoch, and see if its decreasing or not.
yes the loss function is decreasing for every epoch…but still the accuracy is 0 percent
0
Again share your latest ipynb notbook. Make sure you are submitting predictions on test file, also you have converted xtest to numpy array using .values function.
https://drive.google.com/open?id=14YnG3q_agdd425KJeoBIIMjm_OsHIxSh
please check the code as i am unable to find where i am making mistake!!
Hey @kushagra5492, first of all i plotted the graph of error and but it was not decreasing, neither i saw any of graph plotted in your ipynb. You error graph was increasing. The error was
grad=np.dot(X.T,(Y-y_))
which actually should be
grad=np.dot(X.T,(y_-Y))
Change this and than your code will run fine.
Hope this cleared your doubt. 
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.