Git Product home page Git Product logo

hanaecarrie / cs5228_kaggle_income50k_classification Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 133.21 MB

CS5228 Kaggle Inclass Competition: Predicting if Income > 50K

Jupyter Notebook 100.00%
binary-classification feature-engineering knn-classifier mlp-classifier xgboost-classifier catboost extra-trees-classifier random-forest-classifier lightgbm-classifier machinelearning hyperparameter-search

cs5228_kaggle_income50k_classification's Introduction

General

In this work, we address the task of predicting if an individual is earning 50K or more a year. It is a binary classification problem. This work is a part of an in-class Kaggle Competition for Knowledge Discovery and Data Mining Course offered at NUS, Singapore in Semester 2 of AY 2019-2020.

Our final binary F1-score is 86,946% on the private leaderboard and we were ranked 10th / 55.

Set up

To clone this github repository, use the following command:

$ git clone https://github.com/hanaecarrie/CS5228_kaggle_income50K_classification.git 

Make sure you have Python 3.6 or above installed, as well as the following packages:

  • numpy
  • csv
  • os
  • pandas
  • matplotlib
  • seaborn
  • sklearn
  • pickle
  • scipy
  • lightgbm
  • catboost
  • xgboost
  • IPython
  • subprocess
  • keras
  • collections
  • math
  • time
  • glob
  • re

Data description, exploration and visualisation

The Kaggle dataset consists of a separate training and test dataset, both consisting of 24,421 records each. The training dataset suffers from class imbalance, with 75.15% of the samples being from the negative class (โ‰ค $50K, label=0) and the remaining 24.85% being positive samples (> $50K, label=1). The dataset consists of 13 attributes described below:

Alt text

Here are some plots from the report to summarise the dataset features and look at their relationships.

Alt text

Alt text

Results and report

The full report is available here

Alt text

The description of the different preprocessed data:

Alt text

cs5228_kaggle_income50k_classification's People

Contributors

dblux avatar hanaecarrie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

enmingguo

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.