Join us on this Python Machine Learning Guided project. In this Python Regression project, we will be predicting the MPG of classic cars. This is a slight variation on a common predictive workflow. Use ensemble methods like RandomForestRegressor(), AdaBoostRegressor(), and GradientBoostingRegressor() in the supervised machine learning project. This is a great beginner Python project to practice machine learning with ensemble methods.
Send Data Science Teacher Brandyn a message if you have any questions
dataGroups:
![](https://static.wixstatic.com/media/49644a_ed8ce516e03740969c7e4a2f3a63c875~mv2.jpg/v1/fill/w_102,h_76,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/49644a_ed8ce516e03740969c7e4a2f3a63c875~mv2.jpg)
![](https://static.wixstatic.com/media/49644a_57aaf7843819408c81006f8b1b12f90a~mv2.jpg/v1/fill/w_133,h_105,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/49644a_57aaf7843819408c81006f8b1b12f90a~mv2.jpg)
Use Seaborn's pairplot() to plot all the bivariate relationships in one line of code.
![](https://static.wixstatic.com/media/49644a_d8e29dbaa9e945f89f67f59ac2fd6b4d~mv2.jpg/v1/fill/w_154,h_107,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/49644a_d8e29dbaa9e945f89f67f59ac2fd6b4d~mv2.jpg)
Set up your train_test_split() to allow for experimenting many times to find the right features to include in your Machine Learning model.
![](https://static.wixstatic.com/media/49644a_6f68aea17aa04559b9be33e5db8957f5~mv2.jpg/v1/fill/w_130,h_97,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/49644a_6f68aea17aa04559b9be33e5db8957f5~mv2.jpg)
With Sklearn in Python use StandardScaler() to standardize your dataset and PCA() to extract the principle components both make it easier for your model to make predictions.
![](https://static.wixstatic.com/media/49644a_00b6945b97f94333b33db503d3337a07~mv2.jpg/v1/fill/w_148,h_118,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/49644a_00b6945b97f94333b33db503d3337a07~mv2.jpg)
Use the residplot() in Seaborn to to understand how you are making errors in a regression machine learning problem.