This project predicts flight ticket prices using machine learning techniques on a Kaggle flight pricing dataset. The model was trained using Random Forest Regression and compared against Linear Regression.
Flight Price Prediction Dataset: https://www.kaggle.com/datasets/shubhambathwal/flight-price-prediction
- Random Forest Regressor
- Linear Regression
- R² Score: 0.98
- MAE: 1071.97
- MSE: 7562806.67
- RMSE: 2750.06
- R² Score: 0.91
The most important feature affecting ticket prices was:
- Travel Class
- Python
- Pandas
- NumPy
- Scikit-learn
- Matplotlib
The Random Forest model significantly outperformed Linear Regression and achieved highly accurate flight price predictions.