top of page

Python ML Guided Project, Ensemble Methods Predict Classic Cars MPG - Level 3, 24 min

Updated: Aug 21, 2023

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.












Follow Data Science Teacher Brandyn




dataGroups:






Instruct, instructional, instructional education,free python learn, seaborn, python, project, data analysis project, pandas, analyze, heatmap, correlation matrix
put df.corr into a Seaborn heatmap

Use Seaborn's heatmap with Pandas' .corr function to produce a beautiful correlation matrix.



Instruct, instructional, instructional education,free python learn, seaborn, python, project, data analysis project, pandas, analyze, seaborn, pairplot, bivariate
pairplot in seaborn

Use Seaborn's pairplot to plot all the bivariate relationships in one line of code.


Instruct, instructional, instructional education,free python learn, seaborn, python, project, data analysis project, pandas, analyze,
set up list of features that will allow you to comment out specific features at aren't helping

Set up your train_test_split to allow for experimenting many times to find the right features to include in your Machine Learning model.


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.



Instruct, instructional, instructional education,free python learn, seaborn, python, project, data analysis project, pandas, analyze, residplot, analysis regression error
reasidual plot of train and test predictions, analyze regression error

Use the residplot in Seaborn to to understand how you are making errors in a regression machine-learning problem.

99 views0 comments
bottom of page