Last answered:

30 Mar 2020

Posted on:

29 Mar 2020

0

I am getting an error in Linear Regression OLS() function.

Sir, Please have a look at my code at following link:
https://github.com/nikitamalhotra/nikita.malhotras-gmail.com/blob/master/LinearRegression/TR03%20-%20365%20Data%20Science%20-%20SLR%20With%20Comments.ipynb   There is an issue with Plot. I am unable see y labels correctly displaying. Please suggest. And, the OLS() function is also throwing an error. I am not able to understand the reason.  
1 answers ( 0 marked as helpful)
Instructor
Posted on:

30 Mar 2020

0
Hi there, Nikita, This is an issue with the plotting is related to matplotlib. Try plotting only the major values. You are looking for something like: 
plt.tick_params(axis='y', which='major')

Let us know if it worked! Best, The 365 Team

Submit an answer