Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Code for the paper: Multi-Label Clinical Time-Series Generation via Conditional GAN (IEEE TKDE)

NotificationsYou must be signed in to change notification settings

LuChang-CS/MTGAN

Repository files navigation

Code for the paper:Multi-Label Clinical Time-Series Generation via Conditional GAN

Commands

Preprocess Data

  1. Go tohttps://mimic.physionet.org/ for access. Once you have the authority for the dataset, download the dataset and extract the csv files to {data_path}/mimic3/raw/ and {data_path}/mimic4/raw/.
  2. Check hyper-parameter settings:
python run_preprocess.py --help
  1. Run preprocess program:
  • For MIMIC-III
python run_preprocess.py --dataset mimic3 --train_num 6000
  • For MIMIC-IV
python run_preprocess.py --dataset mimic4 --train_num 6000 --sample_num 10000

Add--from_saved if you run it again and want to load saved encoded data.

Training MTGAN

  1. Check hyper-parameter setting:
python run_train.py --help
  1. Run training program
  • For MIMIC-III
python run_train.py --dataset mimic3
  • For MIMIC-IV
python run_train.py --dataset mimic4
  1. The parameters are saved in default atresults/{dataset}/params/. The training plots are saved atresults/{dataset}/records/.

Generating EHR data

  1. Check hyper-parameter setting:
python run_generate.py --help
  1. Run generating program
  • For MIMIC-III
python run_generate.py --dataset mimic3
  • For MIMIC-IV
python run_generate.py --dataset mimic4
  1. The generated data are saved atresults/synthetic_{dataset}.npz.

Requirements:

Environment

  • Python >= 3.7
  • Virtualenv (optional, recommended)
  • CUDA (optional, recommended)
  • RAM > 16GB

Installing packages:

  • matplotlib
  • numpy
  • openpyxl
  • pandas
  • scipy
  • pytorch

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp