DeepConvNet#
- class dpeeg.models.DeepConvNet.DeepConvNet(nCh: int, nTime: int, nCls: int, dropout: float = 0.25)[source]#
Deep Learning With Convolutional Neural Networks for EEG Decoding and Visualization (Deep ConvNet).
Deep ConvNet [1] had four convolution-max-pooling blocks, with a special first block designed to handle EEG input, followed by three standard convolutionmax-pooling blocks and a dense softmax classification layer. The first convolutional block was split into two layers in order to better handle the large number of input channelsone input channel per electrode compared to three input channels (one per color) in rgb-images. In the first layer, each filter performs a convolution over time, and in the second layer, each filter performs a spatial filtering with weights for all possible pairs of electrodes with filters of the preceding temporal convolution. Note that as there is no activation function in between the two layers, they could in principle be combined into one layer. Using two layers however implicitly regularizes the overall convolution by forcing a separation of the linear transformation into a combination of a temporal convolution and a spatial filter.
- Parameters:
nCh (int) – Number of electrode channels.
nTime (int) – Number of data sampling points. For example, a 4-second data input with a sampling rate of 250 Hz is 1000.
nCls (int) – Number of classification categories.
dropout (float) – Dropout rate.
References