- This project is a machine learning-based solution to predict flight fares using various input features like airline, source, destination, departure time, duration, number of stops, and more. The model was trained using historical flight data and deployed for real-time fare prediction.
- Check out the deployed model here:
-
Objective: Predict the flight price based on several travel-related parameters.
-
Model Used: Random Forest Regressor
-
Framework: Python, Scikit-learn, Pandas, NumPy
-
Deployment: Deployed on Render (or insert actual deployment link if available)
-
Frontend: Streamlit (optional, if applicable)
Flight_Fare_Prediction_model/
│
├── app.py # Streamlit app for UI
├ ── flight_rf.pkl # Trained ML model (Git LFS tracked)
├── requirements.txt # Dependency list
├── README.md # Documentation
└── data/ # (Optional) Dataset files
-
Clone the repository
git clone https://github.com/TheMLengineer07/Flight_Fare_Prediction_model.git cd Flight_Fare_Prediction_model
-
Create and active virtual enviroment
python -m venv myenv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Run the app
streamlit run app.py
⚙️ Features & Input Parameters
-
Airline (e.g., Indigo, Jet Airways)
-
Source and Destination cities
-
Date and time of departure and arrival
-
Duration of flight
-
Total number of stops
📈 Model Performance
-
Model: Random Forest Regressor
-
Evaluation Metrics:
-
R² Score: ~0.95
-
MAE and RMSE within acceptable bounds
📦 Tech Stack
-
Programming Language: Python
-
Libraries: Scikit-learn, Pandas, NumPy, Streamlit, Pickle
-
Deployment: Render
- This project is deployed on Render, allowing real-time flight fare predictions.
-
Push your latest code to GitHub.
-
Log in to Render and create a new Web Service.
-
Link your GitHub repository and configure build & start commands.
-
Deploy and monitor logs.
🔗 Live Deployment: Flight Fare Prediction
📌 Future Enhancements
-
Add real-time data input via API
-
Improve UI/UX on the frontend
-
Integrate CI/CD for auto-deployment
🙋♂️ Author
Prabhav @TheMLengineer07
GitHub Profile
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
Let me know if you:
- Want a version with badges (e.g. Streamlit live demo, GitHub stars)
- Want help creating a logo/banner for the top of the README
- Need to write a blog or portfolio summary based on this
Happy shipping! 💼✨