GithubHelp home page GithubHelp logo

pushp360 / kaggle_g2net_gravitational_wave_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fkaneko/kaggle_g2net_gravitational_wave_detection

0.0 0.0 0.0 51 KB

15th place solution for "G2Net Gravitational Wave Detection", kaggle competition

License: Apache License 2.0

Shell 0.71% Python 99.11% Dockerfile 0.18%

kaggle_g2net_gravitational_wave_detection's Introduction

15th place solution for g2net_gravitational_wave_detection at kaggle.

Overview

model

  • Whitening: Using average PSD. Averaging over all noise samples for each site.

  • CQT Scaling with filter_scale = 8/bins_per_octave and (fmin, fmax)=(20, 1024). Both abs and angle part were used.

  • Augmentation

    • Horizontal/time shift
      • Pad both side and then horizontal random crop to get time shift image. -> ROC +0.002.
    • Mixup, prevent from overfitting
  • GeM Fixed power 3 was better than the trainable case. -> ROC +0.001

  • Scores

net spec height width PB score
effnet b0 Log STFT 256 513 0.8760
effnet b0 CQT 181 513 0.8768
effnet b3 CQT 181 1024 0.8797
effnet b3 CQT 273 1024 0.8802

My final score is ensemble of Log STFT/CQT models.

How to run

environment

  • Ubuntu 18.04
  • Python with Anaconda/Mamba
  • NVIDIA GPUx1

Data Preparation

First, download the data, here, and then place it like below.

../input/
    โ”” g2net-gravitational-wave-detection/

Outputs will be stored under ../working/ through hydra.

Code&Package Installation

# clone project
$PROJECT=kaggle_g2net_gravitational_wave_detection
git clone https://github.com/Fkaneko/$PROJECT

# install project
cd $PROJECT
conda create -n g2_net python==3.8.10
bash install.sh
  • This code was for the competition, so some parts of code are not so clean or clear. Please be careful.

Training & Testing

Simply run followings

python train.py

Please check the src/config/config.yaml for the default training configuration. After training, testing will be automatically started with the best validation score checkpoint.

License

Code

Apache 2.0

Dataset

Please check the kaggle page -> https://www.kaggle.com/c/g2net-gravitational-wave-detection/rules

kaggle_g2net_gravitational_wave_detection's People

Contributors

fkaneko 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.