A web app to assist dealers and clients in predicting prices of vehicles in Nigeria
### Table of Contents
1. Installation
2. Project Motivation
3. File Descriptions
4. Analysis & Results
5. Licensing, Authors, and Acknowledgements
## Installation
To run this project, you can clone this repository onto your local machine and follow the instructions below to run locally. Also, you can access the web app here.
The version of python used is python 3.8.8.
Also, you can use the requirements.txt file above.
#### To run the project locally:
1. Clone the repo to your local machine
2. Navigate to the root folder.
3. Run the command below to clean the data and save to an sqlite3 database file:
```
python data/process_data.py data/cars.csv data/trucks.csv data/vehicle_price_prediction.db
```
4. Run the command to train a classifier and save the results to a pickle file.:
```
python models/train_classifier.py data/vehicle_price_prediction.db models/vehicle_price_prediction.pkl
```
5. Run the command to start the web app locally:
```
python app.py
```
Then access the web app locally via:
127.0.0.1
## Project Motivation
There are thousands of vehicles being sold locally each day in Nigeria. However, there's no way to tell if the vehicle that one is about to purchase is really worth the price. This motivated me to build a model that will assist both potential buyers and sellers to estimate the cost of a vehicle based on some well known features.
## File Descriptions
This project is made up of 2 folders, app, data and models.
We have the following files/folder in the root folder
* templates
* go.html - prediction result template
* master.html - index template
* figures.py - plots using Plotly
* load.py - responsible for loading sqlite3 database, dataframe and pickle files
* Recommender.py - a knowledge based recommender engine class
* run.py - main program
* Procfile - heroku deployment file
* requirements.txt - requirements file for heroku
* runtime.txt - heroku deployment file
* vehicle_price_prediction.ipynb - jupyter notebook fil …