Locked lesson.
About this lesson
We'll take a look at the coeffecients and intercepts we discovered at the end of the last video and explain what they mean.
Exercise files
Download this lesson’s related exercise files.
Explore the Coefficents and Intercepts.docx57.1 KB Explore the Coefficents and Intercepts - Solution.docx
55.6 KB
Quick reference
Explore the Coefficents and Intercepts
Next we want to find our Intercept, and the Coefficients.
When to use
Do this whenever you run a Linear Regression.
Instructions
Find the Intercept:
lin.intercept_
Find the Coefficients:
lin.coef_
Create a DataFrame of the Coefficients:
cdf = pd.DataFrame(lin.coef_[0], X_train.columns, columns=['Coeff'])
Hints & tips
- lin.intercept_
- lin.coef_
- cdf = pd.DataFrame(lin.coef_[0], X_train.columns, columns=['Coeff'])
Lesson notes are only available for subscribers.