Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High Gamma Dataset Deep4Net results reproduction

See original GitHub issue

I cannot reproduce the results of the Deep4Net with the HGD.

The accuracy should be at around 90% (for subject 1). I am able to reproduce these results with the ShallowNet but not with the DeepNet. Is there anything special to the training, optimization, regularization, etc. of the DeepNet compared to the ShallowNet? @robintibor: any ideas?

I used the same hyperparameters as in the 2017 publication. The only thing I changed in both cases (ShallowNet and DeepNet) is that I used Conv2dWithContraint instead of Conv2d to add extra regularization:

class Conv2dWithConstraint(nn.Conv2d):
    def __init__(self, *args, max_norm=1, dim=0, **kwargs):
        self.max_norm = max_norm
        self.dim = dim
        super(Conv2dWithConstraint, self).__init__(*args, **kwargs)

    def forward(self, x): = torch.renorm(
  , p=2, dim=self.dim, maxnorm=self.max_norm
        return super(Conv2dWithConstraint, self).forward(x)

The rest of the code below borrows from the BCICIV2a_example in this repository as well as from the original HGD repo.

Code is available at:

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

robintiborcommented, Aug 3, 2022

Hm so hyperparams might be scattered among those files: / Since I cannot see them there, assume we used default learning rate (1e-3) and weight decay 0 for Adam.

In general though, I would recommend to rather try tuning the hyperparams with the new pipeline (training on all data and using cosine annealing), I would expect the overall result to be better.

martinwimpffcommented, Sep 16, 2022

Hi @bruAristimunha, I closed it by accident 😉 I ran some experiments today and got at least in the right range (86-87% overall accuracy). The gap to ShallowNet remains quite large (overall accuracy 93%). I think one would have to run some more experiments to get a really good configuration. But as we are in roughly the same range, I am okay with closing this issue.

If anyone finds a configuration, that matches the published results, feel free to share it here 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

robintibor/high-gamma-dataset - GitHub
High Gamma Dataset Download Trained models Loading this dataset Citing Reproduction of our results Data format Details of recording ...
Read more >
Deep learning with convolutional neural networks for brain ...
Results for the High-Gamma Dataset. Number of trials where one class was mistaken for the other for each decoding method, summed per class....
Read more >
Intra-subject classification results using high gamma dataset ...
Accurate binary classification of electroencephalography (EEG) signals is a challenging task for the development of motor imagery (MI) brain computer interface ...
Read more >
Projektarbeit (Informatik) From human to artificial neural ...
Deep4Net is the best model for inter- and intra-subject classification . ... This results in s trained models per model-dataset combination ...
Read more >
Attention-Based DSC-ConvLSTM for Multiclass Motor Imagery ...
The experimental results show that the average classification accuracy ... Compared with Dataset 1, the High Gamma Dataset (HGD) is a larger ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found