-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding EEG-ITNET model #400
Conversation
Codecov Report
@@ Coverage Diff @@
## master #400 +/- ##
==========================================
+ Coverage 82.63% 82.81% +0.18%
==========================================
Files 53 54 +1
Lines 3738 3789 +51
==========================================
+ Hits 3089 3138 +49
- Misses 649 651 +2 |
Hello @GhBlg, Nice addition to the library! I made some changes to make the review easier, let's wait for someone more senior on the team to review and request some adjustments! Thank you very much for your work! |
My pleasure! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GhBlg many thanks for this contribution. We always dream about having all the SOTA models in braindecode! 😄
For the implementation, I would reorganize the code a little bit and use classes to make the implementation shorter and clearer. By using two classes (_InceptionBlock
and _TCBlock
) we can have less redundant code. It would also correspond better to the structure introduced in the paper. Now it can be a little bit tricky to spot the difference between different blocks.
Let me know, what you think about my propositions and if you have any questions! I am happy to help! 😄
Thank you very much for your help and your review, the code is way better now 😊 ! |
@GhBlg great job! Thanks for that! I think we may have a second iteration (after my review) to make it perfect, if you don't mind! 😄 Two things for now:
If you have any questions, don't hesitate to respond under my comments! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GhBlg I think that a few small reorganization may improve the code.
Main points (everything is in the comments as well):
- Let's put residual connection logic in the
_TCBlock
- A little bit changed
_InceptionBlock
that could be more generic. - Use of
add_module
method fromnn.Sequential
to add new modules.
Could you resolve the conversation when fixed? 🙏 Would be much easier to discuss then. Thanks a lot for contributing once again!
Thank you for your reply ! I will try to fix the current issues. |
Hey @GhBlg, Hope you don't mind, but I added one more test. |
yeah sure ! thank you for adding it ! |
Co-authored-by: Maciej Sliwowski <[email protected]> Update braindecode/models/eegitnet.py fixes
2cef878
to
ab6a0f2
Compare
602fa17
to
5259984
Compare
0b4ab37
to
9d1826a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am very glad for helping to contribute in this great library ! Thank you very much @agramfort @sliwy @bruAristimunha 🙏 |
@agramfort, can you apply the merge when the tests are done? |
Looks like codecov/project has crashed or enter in loop. |
@GhBlg can you just add an entry with your contribution to the what’s new page ? So people know what you did for the project 🙏 |
In the page https://braindecode.org/whats_new.html @GhBlg |
done 😊 |
thx @GhBlg |
Thank you very much for the new model implemented, @GhBlg Welcome to the library contributors list =) 🚀 Always feel invite to collaborate and suggest changes. Your participation is important for the growth of the library. Please let us know if you have ideas for more contributions to the library and need any help. Many thanks for the reviews @sliwy and @agramfort 😄. |
Thank you very much for helping me merging the model @agramfort @bruAristimunha @sliwy ❤️ ! I hope to continue adding more state-of-the-art contributions in the near future ! 😄 |
@GhBlg Thank you for adding this model to the library! I ran some experiments with the BCIC IV 2a dataset to check the importance of this additional weight norm. In my experiments using weight norm did not really have an impact on the overall accuracy (when using one value for all subjects) but if one would tune this parameter per subject there would be some improvements. So should we add weight norm to this model? |
@martinwimpff Thank you very much for the tests ! |
adding the model of EEG-ITNet