This repository contains code to predict fuel consumption using linear regression based on vehicle features.
The goal of this project is to build a linear regression model that predicts fuel consumption based on various vehicle features. The dataset used is 'FuelConsumption.csv', which contains information about fuel consumption and vehicle attributes.
- Python
- Pandas
- NumPy
- Matplotlib
- Scikit-learn
- Place your dataset 'FuelConsumption.csv' in the project directory.
- Run the
fuel_consumption_prediction.py
script to train the model and generate predictions. - View the results and model evaluation metrics.
The linear regression model achieves an R-squared score of 0.98 on the test data, indicating a good fit.
Contributions are welcome! Fork the repository and submit a pull request.
Arman Kianian