This is the code for EEGWaveNet_PrototypeTraining.
To run the code, you need to do the following:
-
Install the the requirements.
-
Download the dataset into
./Data/Das2016(Here we use Das-2016 as an example, you can process the other datasets in the same way). -
Read files `./Data/get_data_for_Das-2016.txt and preprocesse the data accordingly.
-
Change the "base_path" and "DEVICE" in
./utils/cfg.pyaccording to your environment. "DEVICE" must be 'cpu' or 'cuda'. -
Run
- Run
./run/run0.shto get the results of CNN. - Run
./run/run1.shto get the results of DenseNet_3D. Note that "topo" must be True for this model. - Run
./run/run2.shto 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.
- Run
-
Results
- You can find the results in
./results.
- You can find the results in