Skip to content

Latest commit

 

History

History

Flight_delay_prediction_project

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

flight Delay Prediction

This is a python project based on machine learning and artificial intelligence: The Prediction of Flight Delays Using Regression Method

Dataset

Due to the size, I upload all the dataset to google drive.
Dataset

Install

Step1:

1.1 Install Anaconda


1.2 Create Python3.6 environment

conda create -n ee608 python=3.6

Step2:

2.1 Install Jupyter Notebook & JupyterLab

2.2 Install python package

Search and apply the package name below on Anaconda

Or

Using Anaconda Prompt

conda install package-name
  • visualization: matplolib, seaborn, basemap
  • data manipulation: pandas, numpy
  • modeling: scikit-learn, scipy

2.3 Install other package

Search and apply the package name below on Anaconda

  • pydot, python-graphviz, pillow

Step3:

3.1 Start JupyterLab

Run code

Download the dataset

Before you run the code, you need to downlown all the 3 datasets using the link and make sure you put the code and datasets in the same folder.

Flight delay prediction

flight_delay.ipynb

Use Shift + Enter to run code step by step.
Then, you can get the result of each process in the middle of the operation.
After run it to the final step, you can get the flight delay prediction result for two model.

Conclusion

  • Data analysis algorithms are applied to predict flight delay.
  • Airlines are ranked for recommendation purpose.
  • In model 1, cross-validation can avoid bias introduced by splitting data.
  • In model 2, compared with linear regression, polynomial regression with ridge regression is the wining method with MSE (54.99).
  • Include almost all the factors to rank airline for users.

Notice:

Make sure you download all the datasets and put the same folder before run the code!!!