Giter VIP home page Giter VIP logo

kaggle-hpa's Introduction

Human Protein Atlas Image Classification

75th solution for kaggle Human Protein Atlas Image Classification by pytorch 1.0

requirements:

Dataset Preprocessing

See tools/preprocessing.py.

  1. combine_dataset for combining train with external data
  2. train_test_split to split train and valid dataset while keeping class distribution using Multilabel Stratification
  3. create_class_weight to assign weights for each class for weighted BCE loss
  4. create_sample_weight to assign each sample to balancing occurences of each class (linearly)
  5. calc_statistics: calculate std and mean for datasets

Train

using config-based system. to train model

python3 train_net.py --config-file config/res18_cv0.yaml

model will be dumped into dump/res18_cv0 folder

Test

python3 test_net.py --config-file config/res18_cv0.yaml

Evaluation & summission

python3 evaluation.py --config-file config/res18_cv0.yaml

Other Useful tools

  1. TTA: edit build_tta_transforms to insert wanted tta and set TTA to 'on'
  2. macro f1 loss

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.