Linear Regression And Residuals - Pandas For Machine Learning 28

preview_player
Показать описание
In this video we'll finnish creating our Linear Regression Model using the Diabetes Dataset from SciKit-Learn.

We'll Create our Linear Regression, then fit the data to our model and make our predictions.

Then we'll get R2 Scores, Mean Squared Errors, Mean Absolute Erros, and the Intercept.

Finally we'll create a scatter plot of the Regression as well as the Residuals.

#pandas #codemy #JohnElder

Timecodes

0:00​​ - Introduction
0:56 - Create Linear Regression Instance
1:44 - Train The Model
3:50 - Make Predictions From Testing Set
5:45 - Get R2 Score, MSE, MAE, and Intercept
8:28 - Explaining The Metrics
11:58 - Graph The Scatterplot
15:15 - Graph The Residuals
17:34 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch Entire Pandas Playlist ✅ Subscribe To My YouTube Channel:
▶ See More At: ✅ Join My Facebook Group:
▶ Get The Code:

Codemycom
Автор

I watched videos 27 and 28 in this series to see how training/testing works together with linear regression. My online program sometimes requires us to learn certain concepts on our own, so I'm grateful for these. You explained everything clearly, and I was able to apply this to my own computer performance dataset, which is not as pretty, but now I know why! 😀

hgjghjkhify
Автор

Excellent series! I was able to brush up on my knowledge of Pandas and Linear Regression. Thank you for providing such helpful content.

ChanceMinus
Автор

this is taught so well! You should really do more machine learning videos

sushibooshi
Автор

13:38 Why have we used y.min, y.max here and why have you written it two times?

ErenMC_
Автор

Thanks for your videoo!!, is great, Greetings from Uruguay!

patricklandia
Автор

Thank you for detailed tutorial👏. I have a doubt, How can we increase our accuracy from 45 to some higher value? Let's say 60-70%.. How can we do that? If possible please make a video on it. Thank you.

aj
Автор

Sir please do more videos on machine learning algorithms

aenugulasheikdadapeer
Автор

I have a question, the only way to make the model more accurate is to make the data for training more?

ErenMC_
Автор

Hi, thanks for the great tutorial! I was a little confused by your explanation of the intercept_ for LinearRegression at 11:18. How does the sign of the intercept tell you whether the target increases or decreases as the features increase? Wouldn't this information be discerned from the sign of the slope rather than the intercept?

CharlesIhara
Автор

stupid question (bc I can ask that) - visually the model looks good, but why would R2 come at 45%, that percentage doesn't sound too good for a model. What am I missing? In my mind north of 60% is good...

bbt
Автор

Sir, would you like to teach at LFC ? My professor kinda dumb...

mariabelencuadros
Автор

Who are here after completing the entire series 🙋‍♂

skillpolice