Skip to content

qiuzelinChina/PrototypeTraining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is the code for EEGWaveNet_PrototypeTraining.

Run the code

To run the code, you need to do the following:

  1. Install the the requirements.

  2. Download the dataset into ./Data/Das2016 (Here we use Das-2016 as an example, you can process the other datasets in the same way).

  3. Read files `./Data/get_data_for_Das-2016.txt and preprocesse the data accordingly.

  4. Change the "base_path" and "DEVICE" in ./utils/cfg.py according to your environment. "DEVICE" must be 'cpu' or 'cuda'.

  5. Run

    • Run ./run/run0.sh to get the results of CNN.
    • Run ./run/run1.sh to get the results of DenseNet_3D. Note that "topo" must be True for this model.
    • Run ./run/run2.sh to get the results of EEGWaveNet. You can change the parameter $K$ in the paper by changing "prototype".

    You can change other parameters according to your needs.

  6. Results

    • You can find the results in ./results.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors