Skip to content

Machine Learning Project || Predict Flight Prices || EDA & Feature Engineering & Model Training || SHAP - LIME Analysis 🧠|| Performance Metrics || Live Web Application

Notifications You must be signed in to change notification settings

Batuhan-METU/FlightPricePredictor-MachineLearningModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✈️ Flight Price Prediction Web App

Streamlit Python Machine Learning Dataset License


🧠 About the Project

Flight Price Prediction App is a production-ready machine learning web application that predicts flight ticket prices based on multiple features such as airline, source, destination, stops, and travel time.

This project demonstrates the complete ML lifecycle — from data preprocessing and feature engineering to model optimization and deployment with Streamlit.

💡 Built by Batuhan Başoda — using the [Kaggle Flight Price Dataset] and deployed as a modern ML web app.


🚀 Features

  • 🧩 Data Preprocessing: Missing value handling, encoding, and feature extraction
  • ⚙️ Feature Engineering: Time-based and categorical transformations
  • 🧠 Modeling: Trained and compared multiple regression models (RandomForest, XGBoost, etc.)
  • 🎯 Hyperparameter Tuning: Used RandomizedSearchCV for best model performance
  • 📊 Real-time Predictions: User inputs flight details → instant price prediction
  • 🌐 Streamlit UI: Deployed as an interactive, fast, and responsive web app

🛠️ Tech Stack

Category Technology
Language Python & Jupyter Notebook & Anaconda Environment
ML Libraries Scikit-learn, XGBoost, NumPy, Pandas
Visualization Matplotlib, Seaborn
Web Framework Streamlit
Deployment Streamlit Cloud
Dataset Kaggle Flight Price Dataset

🖥️ App Preview

Flight Price Prediction App Screenshot

🔗 Live Demo: https://your-streamlit-app-link.streamlit.app


🧮 Model Overview

  • Data split: 80% training / 20% testing
  • Model evaluation metrics:
    • R² Score: 0.93
    • MAE: 1,809
    • RMSE: 3,913
  • Final model used: Decision Tree Regressor (tuned with RandomizedSearchCV)

🧰 How to Run Locally

# 1️⃣ Clone this repo
git clone https://github.com/batuhanbasoda/flight-price-predictor.git](https://github.com/Batuhan-METU/FlightPricePredictor-MachineLearningModel
cd flight-price-predictor

# 2️⃣ Install dependencies
pip install -r requirements.txt

# 3️⃣ Run the app
streamlit run app.py

About

Machine Learning Project || Predict Flight Prices || EDA & Feature Engineering & Model Training || SHAP - LIME Analysis 🧠|| Performance Metrics || Live Web Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published