This is a simple web application for predicting vehicle mileage based on various features. The app is built using Python, scikit-learn for the machine learning model, and Flask for the web framework.
- Predicts mileage based on user input features.
- Uses a machine learning model (Linear Regression) built with scikit-learn.
- Simple and intuitive web interface using Flask.
- Python 3.7+
- Flask
- scikit-learn
- pandas
- numpy
-
Clone the repository:
git clone https://github.com/Elijah57/mileage-prediction.git cd mileage-prediction
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask app:
python server.py
-
Open your browser and go to:
http://127.0.0.1:5000/
-
Enter the required features for prediction and click 'Predict' to see the estimated mileage.
mileage-prediction-app/
β
βββ server.py # Main application file for Flask
βββ model # Contains the code for training the ML model
β βββ carModel.joblib # Serialized machine learning model
βββ templates/
β βββ index.html # HTML template for the web interface
βββ static/
β βββ style.css # CSS styles for the web interface
βββ requirements.txt # List of dependencies
βββ README.md # Project README file
- The model is already trained using the dataset from [DATA SOURCE] .