Skip to content

ITSEG-MQ/PearNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

PearNet

Prepare datasets

Two public datasets are used in this study: Sleep-EDF-20, Sleep-EDF-78

After downloading the datasets, the data can be prepared as follows:

`cd prepare_datasets`
python prepare_physionet.py --data_dir /path/to/PSG/files --output_dir edf_20_npz --select_ch "EEG Fpz-Cz"
python prepare_physionet.py --data_dir /path/to/PSG/files --output_dir edf_78_npz --select_ch "EEG Fpz-Cz"

Training PearNet

The config.json file is used to update the training parameters. To perform the standard K-fold crossvalidation, specify the number of folds in config.json and run the following:

chmod +x batch_train.sh
./batch_train.sh 0 /path/files

where the first argument represents the GPU id.

Results

The log file of each fold is found in the fold directory inside the save_dir.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors