Skip to content

This project is aimed at predicting car's mileage (mpg) using a dataset which contains multiple features like car name, horsepower, number of cylinders and many more.

Notifications You must be signed in to change notification settings

pranchal0409/Car-Performance-Prediction

Repository files navigation

Car-Performance-Prediction

This project is aimed at predicting car's mileage (mpg) using a dataset which contains multiple features like car name, horsepower, number of cylinders and many more. This project uses car-performance dataset, all the preprocessing steps are applied on the data, to prepare the data to train the model.

Multiple machine learning regression algorithms are trained and tested for r_2 score metric. Random Forest turned out to give the most accurate model for predicting of mpg values.

Then the notebook and the model was deployed on IBM cloud platform and was integrated with python flask network, which was connected to the end point of webpage, the webpage takes the values for attributes of a car and predicts it's mpg (miles per gallon) value and the car performance (Low/Moderate/High).

To run the webpage, enter the following command on command prompt (run the python file app.py)-

python app.py

And then copy the localhost link and paste it on any browser to view the webpage.

Sample EDA graph

Screenshot 2021-08-03 at 8 45 12 PM

R_2 Score Comparision

Screenshot 2021-08-03 at 8 46 44 PM

Sample tree from the final Forest

Screenshot 2021-08-03 at 8 46 09 PM

Scatter Plot of Predicted and Original mpg values

Screenshot 2021-08-03 at 8 47 27 PM

About

This project is aimed at predicting car's mileage (mpg) using a dataset which contains multiple features like car name, horsepower, number of cylinders and many more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages