Skip to content

Latest commit

Β 

History

History
89 lines (60 loc) Β· 1.99 KB

README.md

File metadata and controls

89 lines (60 loc) Β· 1.99 KB

Mileage Prediction Web App

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.

Features

  • 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.

Requirements

  • Python 3.7+
  • Flask
  • scikit-learn
  • pandas
  • numpy

Installation

  1. Clone the repository:

    git clone https://github.com/Elijah57/mileage-prediction.git
    cd mileage-prediction
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the Flask app:

    python server.py
  2. Open your browser and go to:

    http://127.0.0.1:5000/
    
  3. Enter the required features for prediction and click 'Predict' to see the estimated mileage.

Project Structure

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

Model Training

  • The model is already trained using the dataset from [DATA SOURCE] .

Acknowledgements