Skip to content

XueJiang16/ssl-torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssl-torch

This is the code implementation of paper Self-supervised Contrastive Learning for EEG-based Sleep Staging.

Environment Setup

We recommend to setup the environment through conda.

$ conda env create -f environment.yml

Data Preparation

The dataset Sleep-edf can be downloaded here.

Training

We use Pytorch 3.6 to build the network, which is trained on the NVIDIA GTX 1080Ti with the batch size of 128. The network is trained for 70 epochs. We use the SGD optimizer with the momentum $= 0.9$.

For training the network, run

$ python contrast.py -F1 time_warp -F2 time_warp

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages