Skip to content

Visualize all ERP datasets - #261

Merged
sylvchev merged 7 commits into
NeuroTechX:developfrom
jsosulski:sanity_check_p300
Feb 21, 2022
Merged

sylvchev merged 7 commits into
NeuroTechX:developfrom
jsosulski:sanity_check_p300

Conversation

@jsosulski

@jsosulski jsosulski commented Feb 2, 2022 •

Copy link
Copy Markdown
Collaborator

As mentioned on gitter, I dont know if examples are built automatically, which would be bad, so for now just a draft PR (closes #184 ).

Note that I already included the speller datasets from #260

Generated plots I (temporarily, until my server traffic is gone, presumably) uploaded here. This is just the html output of the tree command so nothing fancy as of yet, but I would imagine at least some collapsible stuff etc. Probably also helpful when people run moabb and want to check why for some subjects their classification algorithms are good/bad.

For multi-session data, I generated plots for each session + for all sessions pooled. Titles contain some extracted meta info for the epochs.

Generated plots:

Some may be unnecessary / redundant, but plot generation takes super long (~10hours on my machine/connection) due to data (down)loading and processing and not due to plotting so I just generated everything I found useful.

Open to plot suggestions / what data to write into the title / what to write into an "dataset_summary.csv".

@sylvchev

sylvchev commented Feb 2, 2022

Copy link
Copy Markdown
Member

This is a very nice script! Thanks for sharing the figures.

Could you use a paradigm.datasets, like shown in explore_paradigm, to automatically retrieve the P300 datasets?

@sylvchev sylvchev added dataset Supporting new dataset enhancement labels Feb 2, 2022
@jsosulski

Copy link
Copy Markdown
Collaborator Author

Sounds like a great idea. But I do not understand the purpose of interval in dataset_search. It says its only used for imagery, but the code does not distinguish these cases.

Personally, for ERP / P300, I would prefer that .datasets prints a warning (if at all) if my chosen tmin tmax are out of the bounds of the originally considered intervals of a dataset.

@jsosulski
jsosulski marked this pull request as ready for review February 11, 2022 14:21

@sylvchev sylvchev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could create a folder moabb/scripts and move this script inside.

Comment thread examples/data_visualization_p300.py Resolved
Comment thread examples/data_visualization_p300.py Resolved
@jsosulski

Copy link
Copy Markdown
Collaborator Author

I added author information and a dedicated scripts folder with a disclaimer regarding data size.

@jsosulski
jsosulski requested a review from sylvchev February 16, 2022 16:58
@sylvchev
sylvchev merged commit fc11180 into NeuroTechX:develop Feb 21, 2022
sylvchev pushed a commit that referenced this pull request Feb 22, 2022
* Set download dir test and example (#249)

* Update to dataset_search call in FilterBank Motor Imagery

* Removing completed #fixme

* Removing total_classes argument from dataset_search call in FilterBank MI

This was earlier deprecated in 55f77ae

* set_download_dir test and example

* adding pre-commit modifications

* Update whats_new.rst

* Update examples/changing_download_directory.py

Co-authored-by: Sylvain Chevallier <[email protected]>

* Update examples/changing_download_directory.py

Co-authored-by: Sylvain Chevallier <[email protected]>

* Bump pillow from 8.4.0 to 9.0.0 (#253)

Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.4.0 to 9.0.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@8.4.0...9.0.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix Schirrmeister2017 error (#255)

* correct event loading error, renaming session and runs

* add whats new

* Removing dependency of Physionet MI download on mne method (#257)

* Update physionet_mi.py

* consistency of runs numbering

* Update whats_new.rst

* f-string edits

Co-authored-by: Sylvain Chevallier <[email protected]>

* f-string edits

Co-authored-by: Sylvain Chevallier <[email protected]>

Co-authored-by: Sylvain Chevallier <[email protected]>

* Correct MAMEM issues (#256)

* switch mamem session to runs, use predictable names

* update docstring in evaluation, for building documentation

* update Lee2017 docstring for correct documentation.

* update whats new

* switch SSVEP example to within session

* correct typo and rebase

* correct typos on examples

* Progress bars (#258)

* Progress bars for downloads using pooch functionality

* Rectification of f-string in PhysionetMI

* Evaluations subject level progress bar

CV test subject level in the case of CrossSubjectEvaluation

* Update poetry.lock

* Update pyproject.toml

* dependencies

* Apply suggestions from code review (mne.utils to tqdm direct)

Co-authored-by: Sylvain Chevallier <[email protected]>

* Update poetry.lock

* tqdm arg

* Update whats_new.rst

* Update mistune dep

Co-authored-by: Sylvain Chevallier <[email protected]>

* fix doc url in readme (#262)

* fix doc url in readme

* correct links in the docs

* Schirrmeister2017 High-Gamma Dataset from EDF (#265)

* loading Schirrmeister2017 High-Gamma Dataset from EDF

* remove commented import of requests module

* rename to session_0

* added 13 + 12 subjects speller datasets by huebner (#260)

* added 13 + 12 subjects speller datasets by huebner

* clean up legacy run splitting code

* added use_blocks_as_sessions parameter for data

Co-authored-by: Sylvain Chevallier <[email protected]>

* added Spot Auditory oddball dataset (#266)

* added Spot Auditory oddball dataset

* replaced usage of deprecated dl.data_path

Co-authored-by: Sylvain Chevallier <[email protected]>

* Visualize all ERP datasets (#261)

* Visualize all ERP datasets

* * use paradigm.datasets instead of manual list

* more verbose sanity check script

* fix epo data leak + remove title bf

* moved data visualization

added disclaimer regarding data size

Co-authored-by: Sylvain Chevallier <[email protected]>

* update to v0.4.5 (#269)

* update to v0.4.5

* update poetry and requirements

* correct pre-commit error and add code coverage (#271)

Co-authored-by: Divyesh Narayanan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: robintibor <[email protected]>
Co-authored-by: Jan Sosulski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dataset Supporting new dataset enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sanity check script

2 participants