Giter VIP home page Giter VIP logo

hi-covidnet's Introduction

Hi-COVIDNet : Deep Learning Approach to Predict Inbound COVID-19 Patients and Case Study in South Korea

About

Source code and datasets of the paper Hi-COVIDNet : Deep Learning Approach to Predict Inbound COVID-19 Patients and Case Study in South Korea, KDD 2020 (AI for COVID track, Health Day)

Since the data from Korea Telecom(KT) is not open to the public, if you would like to run the code, please contact KT. We are contacting KT for data release.

Installation

Requirements

  • Python 3.6 (Recommend Anaconda)
  • Ubuntu 16.04.3 LTS
  • Pytorch >= 1.2.0
  • Numpy >= 1.17.2

Usage

  • Download all codes (*.py) and put them in the same folder
  • Create "model_grid_search" folder in the same folder
  • Create "pickled_ds" folder for dataset and mean_std data
  • Open terminal in the same folder
  • Run "python data_loader.py" to preprocess and save data in ".pkl" format
python data_loader.py -h
usage: data_loader.py [-h] [--output_size O] [--save]

Hi-covidnet DATALOADER

optional arguments:
-h, --help       show this help message and exit
--output_size O  How many days you are predicting(default: 14)
--save           Saving pre-processed data

example usage :

python data_loader.py --output_size 14
data shape is  32 (14, 10)
target_continent shape is  (32, 14, 6) target_total shape is  (32, 14)
Loading KT roaming data
Loading infection ratio data
Loading passenger flights data
Normalizing continent target
Normalizing total target
  • Run "python main.py" to train Hi-COVIDNet
python main.py -h
usage: main.py [-h] [--epochs N] [--model_path MODEL_PATH] [--gpu_id GPU_ID]
             [--lr LR] [--beta BETA] [--hidden_size HIDDEN]
             [--output_size OUTPUT] [--is_aux] [--is_tm]

Hi-covidnet

optional arguments:
-h, --help            show this help message and exit
--epochs N            number of epochs to train (default: 100)
--model_path MODEL_PATH
                      prefix of path of the model
--gpu_id GPU_ID       gpu_ids: e.g. 0,1,2,3,4,5
--lr LR               learning rate (default: 0.03)
--beta BETA           ratio of continent loss and total loss (default: 0.5)
--hidden_size HIDDEN  hidden size of LSTM and Transformer(default: 4) e.g.
                      2,4,8, ... depending on your dataset
--output_size OUTPUT  How many days you are predicting
--is_aux              use auxilary data
--is_tm               use transformer

Hyperparameters:

Please check the hyperparameters of Hi-COVIDNet defined in main.py

hi-covidnet's People

Contributors

jaegil avatar minseok-pons-kim 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.