Trained to predict vehicle fuel consumption using regression models and real-world automotive data.
A machine learning project to predict the fuel consumption of vehicles using regression models. The project is designed using Jupyter Notebooks and includes training, model loading, and real-time predictions.
This project aims to estimate vehicle fuel consumption based on features such as engine size, cylinders, fuel type, and CO2 emissions. It uses preprocessed datasets and trained models to allow accurate predictions with minimal latency.
- π Predict fuel consumption from input features
- πΎ Load pre-trained model from file
- π Visualize and test model performance
- π Modular notebook structure for clarity
- Python 3.x
- Pandas β Data manipulation
- Scikit-learn β Machine Learning models
- Matplotlib/Seaborn β Visualization
- Jupyter Notebook β Development environment
- Joblib / Pickle β Model serialization
βββ fuel_model_load.ipynb # Loads saved model & makes predictions βββ fuel_pred.ipynb # Core prediction interface βββ model.pkl # (optional) Trained model file βββ dataset.csv # (optional) Vehicle data used for training
-
Install dependencies:
- pip install pandas scikit-learn matplotlib seaborn
-
Run Jupyter Notebook
- jupyter notebook
-
Open and run the following notebooks:
- fuel_model_load.ipynb (to load model and test predictions)
- fuel_pred.ipynb (to predict fuel consumption)
-
π Dataset The dataset (final_data.csv) contain:
- Engine size
- Cylinders
- Fuel type
- CO2 emissions
- Fuel consumption (L/100km)