Giter Club home page Giter Club logo

higgs_ml's Introduction

Higgs Boson Machine Learning Challenge

EPFL CS-433 Machine Learning - Project 1

EPFL Machine Learning course held an InClass Prediction Competition in Kaggle, which is a copy of the earlier official Kaggle competition by CERN. This repository contains our winning solution to this competition. Our team RED finally ranked 11 of 201 teams.

Detailed description of the course and the porject can be found in the course website and the course Github repository.

Team: RED

Team Members: Tao Sun, Xiao Zhou, Jimin Wang

Instructions

In order to reproduce the result we submitted to Kaggle, please follow the instructions as following:

  1. Please make sure Python 3.6 and NumPy>=1.15 are installed.
  2. Kindly download dataset from Kaggle competition dataset, and put train.csv and test.csv into the data\ folder.
  3. Go to script\ folder and run run.py. You will get submission.csv for Kaggle in the submission\ folder.
cd script
python run.py

Modules and Notebook

proj1_helpers.py

Helper functions to load raw csv data into NumPy array, generate class predictions and create an output file in csv format for submission to Kaggle.

helpers.py

Helper functions for data preprocessing, feature engineering and regression model training.

  • preprocessing: Preprocess train/test data with methods below.
    • standardize: Standardize data set ignoring NaN.
    • delta_angle_norm, add_phi: Add new phi features according to organizer's suggestions.
    • apply_log1p: Apply log normalization to long-tailed features.
    • drop_useless: Drop useless columns, including raw phi angles, columns with the same values, columns full of NaN.
    • fill_missing, fill_nan: Mark missing values with NaN and then fill them with zero.
  • train_predict: Train and predict each group using polynomial ridge regression.
    • get_jet_index: Get the index of three groups.
    • build_poly_feature: Build polynomial features for input data.

implementations.py

Six basic machine learning methods with some supported functions.

  • least_squares_GD: Linear regression using gradient descent.
  • least_squares_SGD: Linear regression using stochastic gradient descent.
  • least_squares: Least squares regression using normal equations.
  • ridge_regression: Ridge regression using normal equations.
  • logistic_regression: Logistic regression using SGD.
  • reg_logistic_regression: Regularized logistic regression using SGD.

Cross Validation.ipynb

Notebook with the cross validation results and related functions.

run.py

Script to generate the same submission file as we submitted in Kaggle.

higgs_ml's People

Contributors

taosunvoyage avatar zx-joe 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.