Skip to content
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

Models dict #524

Merged
merged 5 commits into from Sep 10, 2023
Merged

Models dict #524

merged 5 commits into from Sep 10, 2023

Conversation

PierreGtch
Copy link
Collaborator

adds braindecode.models.util.models_dict

@PierreGtch PierreGtch marked this pull request as ready for review September 10, 2023 09:32
@codecov
Copy link

codecov bot commented Sep 10, 2023

Codecov Report

Merging #524 (c95c302) into master (6f213a8) will decrease coverage by 0.02%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #524      +/-   ##
==========================================
- Coverage   84.37%   84.35%   -0.02%     
==========================================
  Files          63       63              
  Lines        4545     4578      +33     
==========================================
+ Hits         3835     3862      +27     
- Misses        710      716       +6     

@robintibor
Copy link
Contributor

Can you explain a bit what this does? And maybe add such explanation in the comments. Looks quite magic to me at the moment haha :)

@bruAristimunha
Copy link
Collaborator

I added a small comment explaining the filling logic @robintibor. It is a for that is executed when loading the library that will allow you to access the list of models and is updated dynamically.

@PierreGtch
Copy link
Collaborator Author

@robintibor Haha it’s the same as for the dataset_list in MOABB
@bruAristimunha Thanks!

@bruAristimunha bruAristimunha merged commit 64aa416 into braindecode:master Sep 10, 2023
14 of 15 checks passed
@bruAristimunha
Copy link
Collaborator

Thank you Pierre!

dcwil pushed a commit to dcwil/braindecode that referenced this pull request Sep 11, 2023
* Add models_dict

* Add test for models_dict

* Update whats_new.rst

* Update braindecode/models/util.py

* flake8

---------

Co-authored-by: Bru <a.bruno@aluno.ufabc.edu.br>
dcwil added a commit to dcwil/braindecode that referenced this pull request Sep 11, 2023
dcwil added a commit to dcwil/braindecode that referenced this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants