An application for predicting flight prices using machine learning. The structured branch contains the data pipeline, model, and API setup necessary to support predictions.
This project uses historical flight data and statistical / machine learning methods to predict flight ticket prices. The prediction model is exposed via a REST API so that it can be used by frontends or other services.
- Data pipeline for cleaning, feature engineering, model training.
- Predictive model serialized (
.pkl) for inference. - REST API endpoints to get price predictions.
- Logging configuration for debugging / monitoring.
- Structured layout, tests, and notebooks for experimentation.
Here’s a quick rundown of the folders & files:
Flight-Price-Prediction/
├── README.md
├── .gitignore
├── requirements.txt
├── requirements-dev.txt
├── pytest.ini
├── main.py
├── main-base.py
├── api.py
├── pipeline.py
├── mlflow_config.py
├── logging_config.py
├── data/
│ ├── raw_data.csv
│ └── processed_data.csv
├── dist/
│ ├── favicon.ico
│ ├── index.html
│ ├── placeholder.svg
│ ├── robots.txt
│ └── assets/
├── logs/
│ └── project.log
├── notebooks/
│ ├── flight_price.ipynb
├── src/
│ ├── __init__.py
│ ├── data.py
│ ├── model.py
│ ├── predict.py
│ └── utils.py
└── tests/
├── test_data.py
├── test_geoapi.py
└── test_models.py
- Python 3.8+
pipfor installing dependencies- (Optional) virtual environment tool like
venvorconda - (Optional) MLflow if you're using tracking
# Clone the repo
git clone https://github.com/10mudassir007/Flight-Price-Prediction.git
cd Flight-Price-Prediction
# Create and activate virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install requirements
pip install -r requirements.txt
pip install -r requirements-dev.txt # optional, for testing and dev toolspytest tests/python pipeline.py
uvicorn main:app