Giter Club home page Giter Club logo

atmacup-15's Introduction

#15 atmacup 1st place solution

ディレクトリ構成

|-- Dockerfile
|-- LICENSE
|-- README.md
|-- compose.yaml
|-- exp : 実験用スクリプト
|-- features : 特徴量生成ファイル、生成した特徴用の保存先
|-- features_old : 旧版特徴量生成ファイル
|-- input : コンペデータの格納先
|-- notebook : ノートブック格納先。expに書く前の動作確認用がメイン
|-- output : 実行結果の格納先
|-- scripts : 実験用以外の雑多なスクリプト格納先
|-- utils
`-- yamls : hydra で使うための config ファイル群

exp ディレクトリの実験用スクリプトの種類

  • 00x: LightGCN 系 (seen 用)
  • 01x: surprise によるモデル (seen 用)
  • 02x: surprise によるモデル (unseen 用)
  • 03x: NN (seen 用)
  • 04x: NN (unseen 用)
  • 05x: set transformer (unseen 用)
  • 06x: Heterogeneous Graph Learning (seen 用)
  • 07x: TVTTFormer(Train-Valid-Test TransFoermer
  • 10x: LightGBM (seen 用)
  • 20x: LightGBM (unseen 用)
  • 30x: アンサンブル・stacking 用コード

実行方法

環境構築

kaggle docker をベースに

docker compose biuld
docker compose run kaggle bash # bash に入る
docker compose up # jupyter lab 起動

初期設定

input/atmaCup15_dataset にデータを配置後、feather 形式に変換

cd scripts/
python convert_to_feather.py

特徴量を作成

cd features
python create.py

実行方法

事前に特徴量を作成後、exp 内で実行する。

実行例

cd exp
python 000_baseline.py train.embedding_dim=6000 train.num_layers=5
python 000_baseline.py train=base005
python 001_lightgcn_agg.py debug=True train=train001
python 005_lightgcn_unseen.py debug=True train=000_lightgcn.yaml
python 010_surprise.py surprise.name=SVD debug=True
python 031_nn_seen_scheduler.py nn=nn031_006
python 033_nn.py nn=nn033_002
python 041_nn_seen_scheduler.py nn=nn040_007
python 060_gcn_seen.py gcn=gcn060_001
python 100_lgb.py lgb=lgb100_013
python 200_lgb.py lgb=lgb200
python 201_stratify.py lgb=lgb200_017
python 300_combine.py combine=combine306
python 301_combine.py combine=combine306
python 302_combine.py combine=combine310
python 041_nn_unseen_scheduler.py nn=nn040_007

最終提出

最終提出は以下のコードで生成しました。

cd exp
python 305_combine.py combine=combine319_v4

アンサンブルのためのモデルは実験ごとに一意の id を付与しており、wandb で管理していたので他の方はすぐに再現するのは難しいかもしれません。

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.