-
Notifications
You must be signed in to change notification settings - Fork 225
Improved _inc_exc_datasets() and paradigms handling in benchmark() #834
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
Improved _inc_exc_datasets() and paradigms handling in benchmark() #834
Conversation
Adds function filter_paradigms(). It provides better error messages.
…ithub.com/toncho11/moabb into improve_fix_inc_exc_datasets_in_benchmark
|
hey @toncho11, can you fix the tests please: FAILED moabb/tests/test_benchmark.py::TestBenchmark::test_benchmark_strdataset - ValueError: Invalid dataset codes in include_datasets: ['FakeDataset-p300-10-2--60-60--120-120--target-nontarget--c3-cz-c4', 'FakeDataset-ssvep-10-2--60-60--120-120--13-15--c3-cz-c4', 'FakeDataset-cvep-10-2--60-60--120-120--10-00--c3-cz-c4'] |
|
I need some more time on the code. |
Added one FakeDataset for P300 testing.
gcattan
left a comment
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.
Thanks @toncho11
I think the issue is that you cannot rely on real datasets in Ci/Cd.
Your code remains unchanged. Let me know if you are ok with the edits.
|
Exactly, we don't have a compute instance to send jobs like MNE and Scikit-learn, with some Azure cluster. It's still too expensive for us. |
|
Ready for merge. I added a few adjustments and improvements. |
|
Thank you for this nice contribution @toncho11 ! |
A re-written _inc_exc_datasets() that fixes issues and provides much needed checks. Before it was possible not to recognize correctly if the input is string or object and thus process the input incorrectly. Fixes: #654. It avoids some confusion induced by the old version.
Might help with: #659
Below is the code I used for testing: