The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

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

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

0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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