Code Monkey home page Code Monkey logo

airline_delay_classifier's Introduction

CA4022 - Spark

Project intro

We are developing a model to predict US flight delays using data from 2019 found on kaggle here. We classify delays as any flight that leaves >15 mins after its departure time. The columns we selected/created as features are:

  • Day
  • Month
  • Hour
  • Carrier code
  • Flight number
  • Origin
  • Destination
  • Distance

Status

In progress.
Daniel - Data analysis
George - Model development

Current Blockers

No blockers

Technology used

  • Python
  • Apache Spark
  • Hive
  • Neo4j

The following algorithms are tested, using pyspark's machine learning packages, to see which best fit the data:

  • Random Forest
  • Decision Tree
  • Multilayer Perceptron
  • Naïve Bayes

We also tested the use of undersampling as the dataset was extremely imbalanced.

Execution of Code

To execute the ML code, download spark and from your spark home execute the following:

bin/spark-submit --master local[4] ~path_to_file/ca4022-spark/ML\ models/Multilayer_Perceptron_Classifier.py

Project Contributers

Daniel Sammon, 18364071
George Dockrell, 18745115

Results

Model Accuracy Area Under ROC Curve Area under PR curve
Random Forest 0.82 0.67 0.32
Decision Tree 0.83 0.60 0.22
Multilayer Perceptron 0.82 0.52 0.18
Naïve Bayes 0.53 0.48 0.17
Model with undersampling Accuracy Area Under ROC Curve Area under PR curve
Random Forest 0.63 0.68 0.65
Decision Tree 0.63 0.62 0.61
Multilayer Perceptron 0.51 0.51 0.51
Naïve Bayes 0.52 0.48 0.48

airline_delay_classifier's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.