Skip to content

πŸš—βœ¨ A simple web app for predicting vehicle mileage using machine learning! Built with Python, Flask, and scikit-learn, it features an easy-to-use interface for instant mileage predictions. πŸ”§πŸ“Š

Notifications You must be signed in to change notification settings

Elijah57/milage-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


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


About

πŸš—βœ¨ A simple web app for predicting vehicle mileage using machine learning! Built with Python, Flask, and scikit-learn, it features an easy-to-use interface for instant mileage predictions. πŸ”§πŸ“Š

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published