braindecode 1.8.0.dev1128__tar.gz → 1.8.0.dev168891348__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {braindecode-1.8.0.dev1128/braindecode.egg-info → braindecode-1.8.0.dev168891348}/PKG-INFO +1 -1
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/base.py +15 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/atcnet.py +2 -2
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/attn_sleep.py +87 -28
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/base.py +3 -3
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/ctnet.py +9 -6
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegsimpleconv.py +8 -6
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/ifnet.py +8 -5
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/sleep_stager_blanco_2020.py +5 -9
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/sleep_stager_chambon_2018.py +1 -7
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/sparcnet.py +2 -2
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/summary.csv +1 -1
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/tidnet.py +1 -7
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/preprocessing/windowers.py +126 -30
- braindecode-1.8.0.dev168891348/braindecode/version.py +1 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348/braindecode.egg-info}/PKG-INFO +1 -1
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/whats_new.rst +45 -1
- braindecode-1.8.0.dev1128/braindecode/version.py +0 -1
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/LICENSE.txt +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/MANIFEST.in +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/NOTICE.txt +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/README.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/augmentation/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/augmentation/base.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/augmentation/functional.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/augmentation/transforms.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/classifier.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bbci.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bcicomp.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/datasets.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/format.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/hub.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/hub_format.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/hub_io.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/hub_validation.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/bids/iterable.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/chb_mit.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/collate.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/mne.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/moabb.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/nmt.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/registry.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/siena.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/sleep_physio_challe_18.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/sleep_physionet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/tuh.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/utils.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datasets/xy.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datautil/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datautil/channel_utils.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datautil/hub_formats.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datautil/serialization.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/datautil/util.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/eegneuralnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/functional/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/functional/functions.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/functional/initialization.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/attentionbasenet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/bendr.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/biot.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/brainmodule.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/cbramod.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/codebrain.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/config.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/contrawr.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/dance.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/deep4.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/deepsleepnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/dgcnn.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegconformer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegdino.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eeginception_erp.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eeginception_mi.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegitnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegminer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegnex.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegpt.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegsym.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegtcnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/emg2qwerty.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/fbcnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/fblightconvnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/fbmsnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/hybrid.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/interpolated.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/labram.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/luna.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/medformer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/meta_neuromotor.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/msvtnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/mvpformer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/patchedtransformer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/reve.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/sccnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/shallow_fbcsp.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/signal_jepa.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/sinc_shallow.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/sstdpn.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/steegformer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/syncnet.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/tcformer.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/tcn.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/tsinception.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/usleep.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/util.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/zuna.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/activation.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/attention.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/blocks.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/convolution.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/dance_modules.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/filter.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/interpolation.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/layers.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/linear.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/parametrization.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/stats.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/util.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/modules/wrapper.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/preprocessing/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/preprocessing/eegprep_preprocess.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/preprocessing/mne_preprocess.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/preprocessing/preprocess.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/preprocessing/util.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/regressor.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/samplers/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/samplers/base.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/samplers/ssl.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/training/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/training/callbacks.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/training/losses.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/training/scoring.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/util.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/__init__.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/attribution.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/confusion_matrices.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/frequency.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/metrics.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/sanity.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/visualization/topology.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode.egg-info/SOURCES.txt +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode.egg-info/dependency_links.txt +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode.egg-info/requires.txt +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode.egg-info/top_level.txt +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/Makefile +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/_templates/autosummary/class.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/_templates/autosummary/class_in_subdir.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/_templates/autosummary/function.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/_templates/autosummary/function_in_subdir.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/api.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/cite.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/conf.py +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/help.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/index.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/install/install.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/install/install_pip.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/install/install_source.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/attention.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/channel.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/convolution.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/filterbank.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/gnn.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/interpretable.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/lbm.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/recurrent.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/categorization/spd.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/models.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/models_categorization.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/models_table.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/models/models_visualization.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/docs/sg_execution_times.rst +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/pyproject.toml +0 -0
- {braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: braindecode
|
|
3
|
-
Version: 1.8.0.
|
|
3
|
+
Version: 1.8.0.dev168891348
|
|
4
4
|
Summary: Deep learning software to decode EEG, ECG or MEG signals
|
|
5
5
|
Author-email: Robin Tibor Schirrmeister <robintibor@gmail.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Alexandre Gramfort <agramfort@meta.com>
|
|
6
6
|
Maintainer-email: Alexandre Gramfort <agramfort@meta.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Robin Tibor Schirrmeister <robintibor@gmail.com>
|
|
@@ -59,6 +59,7 @@ def _html_row(label, value):
|
|
|
59
59
|
|
|
60
60
|
_METADATA_INTERNAL_COLS = {
|
|
61
61
|
"i_window_in_trial",
|
|
62
|
+
"i_trial_in_dataset",
|
|
62
63
|
"i_start_in_trial",
|
|
63
64
|
"i_stop_in_trial",
|
|
64
65
|
"target",
|
|
@@ -1374,6 +1375,20 @@ class BaseConcatDataset(ConcatDataset, HubDatasetMixin, Generic[T]):
|
|
|
1374
1375
|
"datasets are WindowsDataset."
|
|
1375
1376
|
)
|
|
1376
1377
|
|
|
1378
|
+
for ds in self.datasets:
|
|
1379
|
+
if hasattr(ds, "_windows") and ds._windows is not None:
|
|
1380
|
+
df = ds._windows.metadata
|
|
1381
|
+
else:
|
|
1382
|
+
df = ds.metadata
|
|
1383
|
+
if (
|
|
1384
|
+
"i_trial_in_dataset" in df.columns
|
|
1385
|
+
and "i_trial_in_dataset" in ds.description
|
|
1386
|
+
):
|
|
1387
|
+
raise ValueError(
|
|
1388
|
+
"Dataset descriptions cannot contain the reserved window "
|
|
1389
|
+
"metadata key 'i_trial_in_dataset'."
|
|
1390
|
+
)
|
|
1391
|
+
|
|
1377
1392
|
all_dfs = list()
|
|
1378
1393
|
for ds in self.datasets:
|
|
1379
1394
|
if hasattr(ds, "_windows") and ds._windows is not None:
|
|
@@ -196,7 +196,7 @@ class ATCNet(EEGModuleMixin, nn.Module):
|
|
|
196
196
|
num_heads : int
|
|
197
197
|
Number of attention heads, denoted H in table 1 of the paper [1]_.
|
|
198
198
|
Defaults to 2 as in [1]_.
|
|
199
|
-
|
|
199
|
+
att_drop_prob : float
|
|
200
200
|
Dropout probability used in the attention block, denoted pa in table 1
|
|
201
201
|
of the paper [1]_. Defaults to 0.5 as in [1]_.
|
|
202
202
|
tcn_depth : int
|
|
@@ -206,7 +206,7 @@ class ATCNet(EEGModuleMixin, nn.Module):
|
|
|
206
206
|
tcn_kernel_size : int
|
|
207
207
|
Temporal kernel size used in TCN block, denoted Kt in table 1 of the
|
|
208
208
|
paper [1]_. Defaults to 4 as in [1]_.
|
|
209
|
-
|
|
209
|
+
tcn_drop_prob : float
|
|
210
210
|
Dropout probability used in the TCN block, denoted pt in table 1
|
|
211
211
|
of the paper [1]_. Defaults to 0.3 as in [1]_.
|
|
212
212
|
tcn_activation : torch.nn.Module
|
{braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/attn_sleep.py
RENAMED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
# Authors: Divyesh Narayanan <divyesh.narayanan@gmail.com>
|
|
2
|
+
# Sarthak Tayal <sarthaktayal2@gmail.com>
|
|
2
3
|
#
|
|
3
4
|
# License: BSD (3-clause)
|
|
5
|
+
#
|
|
6
|
+
# This implementation derives from https://github.com/emadeldeen24/AttnSleep:
|
|
7
|
+
#
|
|
8
|
+
# MIT License
|
|
9
|
+
#
|
|
10
|
+
# Copyright (c) 2020 Emadeldeen Eldele
|
|
11
|
+
#
|
|
12
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
# in the Software without restriction, including without limitation the rights
|
|
15
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
# furnished to do so, subject to the following conditions:
|
|
18
|
+
#
|
|
19
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
# copies or substantial portions of the Software.
|
|
21
|
+
#
|
|
22
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
# SOFTWARE.
|
|
4
29
|
|
|
5
30
|
import math
|
|
6
31
|
import warnings
|
|
7
32
|
from copy import deepcopy
|
|
33
|
+
from numbers import Integral
|
|
8
34
|
|
|
9
35
|
import torch
|
|
10
36
|
import torch.nn.functional as F
|
|
@@ -33,7 +59,8 @@ class AttnSleep(EEGModuleMixin, nn.Module):
|
|
|
33
59
|
|
|
34
60
|
Warning - This model was designed for signals of 30 seconds at 100Hz or 125Hz (in which case
|
|
35
61
|
the reference architecture from [1]_ which was validated on SHHS dataset [2]_ will be used)
|
|
36
|
-
to use any other input is likely to make the model perform in unintended ways.
|
|
62
|
+
to use any other input is likely to make the model perform in unintended ways. Any other
|
|
63
|
+
window length also needs a ``d_model`` of its own, see the parameter below.
|
|
37
64
|
|
|
38
65
|
Parameters
|
|
39
66
|
----------
|
|
@@ -44,7 +71,10 @@ class AttnSleep(EEGModuleMixin, nn.Module):
|
|
|
44
71
|
Also the input dimension of the first FC layer in the feed forward
|
|
45
72
|
and the output of the second FC layer in the same.
|
|
46
73
|
Increase for higher sampling rate/signal length.
|
|
47
|
-
It should be divisible by n_attn_heads
|
|
74
|
+
It should be divisible by n_attn_heads. It must also equal the number
|
|
75
|
+
of time steps returned by the feature extractor: 80 for 30 seconds at
|
|
76
|
+
100 Hz and 100 for 30 seconds at 125 Hz. A construction error reports
|
|
77
|
+
the value needed for other window lengths.
|
|
48
78
|
d_ff : int
|
|
49
79
|
Output dimension of the first FC layer in the feed forward and the
|
|
50
80
|
input dimension of the second FC layer in the same.
|
|
@@ -58,15 +88,12 @@ class AttnSleep(EEGModuleMixin, nn.Module):
|
|
|
58
88
|
If True, return the features, i.e. the output of the feature extractor
|
|
59
89
|
(before the final linear layer). If False, pass the features through
|
|
60
90
|
the final linear layer.
|
|
61
|
-
n_classes : int
|
|
62
|
-
Alias for `n_outputs`.
|
|
63
|
-
input_size_s : float
|
|
64
|
-
Alias for `input_window_seconds`.
|
|
65
91
|
activation : nn.Module, default=nn.ReLU
|
|
66
|
-
Activation function class to apply
|
|
92
|
+
Activation function class to apply in the AFR block and the TCE
|
|
93
|
+
feed-forward block. Should be a PyTorch activation
|
|
67
94
|
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.ReLU``.
|
|
68
|
-
activation_mrcnn : nn.Module, default=nn.
|
|
69
|
-
Activation function class to apply in the
|
|
95
|
+
activation_mrcnn : nn.Module, default=nn.GELU
|
|
96
|
+
Activation function class to apply in the multi-resolution CNN layer.
|
|
70
97
|
Should be a PyTorch activation module class like ``nn.ReLU`` or
|
|
71
98
|
``nn.GELU``. Default is ``nn.GELU``.
|
|
72
99
|
|
|
@@ -99,6 +126,14 @@ class AttnSleep(EEGModuleMixin, nn.Module):
|
|
|
99
126
|
n_chans=None,
|
|
100
127
|
n_times=None,
|
|
101
128
|
):
|
|
129
|
+
if (
|
|
130
|
+
sum(value is not None for value in (n_times, sfreq, input_window_seconds))
|
|
131
|
+
< 2
|
|
132
|
+
):
|
|
133
|
+
raise ValueError(
|
|
134
|
+
"AttnSleep requires at least two of n_times, sfreq, and "
|
|
135
|
+
"input_window_seconds."
|
|
136
|
+
)
|
|
102
137
|
super().__init__(
|
|
103
138
|
n_outputs=n_outputs,
|
|
104
139
|
n_chans=n_chans,
|
|
@@ -140,6 +175,14 @@ class AttnSleep(EEGModuleMixin, nn.Module):
|
|
|
140
175
|
activation=activation_mrcnn,
|
|
141
176
|
activation_se=activation,
|
|
142
177
|
)
|
|
178
|
+
feature_length = self._feature_length(mrcnn, self.n_times)
|
|
179
|
+
if feature_length != d_model:
|
|
180
|
+
raise ValueError(
|
|
181
|
+
f"d_model is {d_model} but the feature extractor returns "
|
|
182
|
+
f"{feature_length} time steps for an input of {self.n_times} "
|
|
183
|
+
f"samples at {self.sfreq} Hz. Set d_model={feature_length}, with "
|
|
184
|
+
"an n_attn_heads that divides it."
|
|
185
|
+
)
|
|
143
186
|
attn = _MultiHeadedAttention(n_attn_heads, d_model, after_reduced_cnn_size)
|
|
144
187
|
ff = _PositionwiseFeedForward(d_model, d_ff, drop_prob, activation=activation)
|
|
145
188
|
tce = _TCE(
|
|
@@ -150,23 +193,26 @@ class AttnSleep(EEGModuleMixin, nn.Module):
|
|
|
150
193
|
)
|
|
151
194
|
|
|
152
195
|
self.feature_extractor = nn.Sequential(mrcnn, tce)
|
|
153
|
-
self.len_last_layer =
|
|
196
|
+
self.len_last_layer = feature_length * after_reduced_cnn_size
|
|
154
197
|
self.return_feats = return_feats
|
|
155
198
|
|
|
156
199
|
# TODO: Add new way to handle return features
|
|
157
200
|
"""if return_feats:
|
|
158
201
|
raise ValueError("return_feat == True is not accepted anymore")"""
|
|
159
202
|
if not return_feats:
|
|
160
|
-
self.final_layer = nn.Linear(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
203
|
+
self.final_layer = nn.Linear(self.len_last_layer, self.n_outputs)
|
|
204
|
+
|
|
205
|
+
@staticmethod
|
|
206
|
+
def _feature_length(mrcnn, n_times):
|
|
207
|
+
training_states = [(module, module.training) for module in mrcnn.modules()]
|
|
208
|
+
mrcnn.eval()
|
|
209
|
+
try:
|
|
210
|
+
with torch.no_grad():
|
|
211
|
+
out = mrcnn(torch.zeros(1, 1, n_times))
|
|
212
|
+
finally:
|
|
213
|
+
for module, was_training in training_states:
|
|
214
|
+
module.training = was_training
|
|
215
|
+
return out.shape[-1]
|
|
170
216
|
|
|
171
217
|
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
|
172
218
|
"""
|
|
@@ -195,7 +241,7 @@ class _SELayer(nn.Module):
|
|
|
195
241
|
self.avg_pool = nn.AdaptiveAvgPool1d(1)
|
|
196
242
|
self.fc = nn.Sequential(
|
|
197
243
|
nn.Linear(channel, channel // reduction, bias=False),
|
|
198
|
-
activation(
|
|
244
|
+
activation(),
|
|
199
245
|
nn.Linear(channel // reduction, channel, bias=False),
|
|
200
246
|
nn.Sigmoid(),
|
|
201
247
|
)
|
|
@@ -236,10 +282,10 @@ class _SEBasicBlock(nn.Module):
|
|
|
236
282
|
super(_SEBasicBlock, self).__init__()
|
|
237
283
|
self.conv1 = nn.Conv1d(inplanes, planes, stride)
|
|
238
284
|
self.bn1 = nn.BatchNorm1d(planes)
|
|
239
|
-
self.relu = activation(
|
|
285
|
+
self.relu = activation()
|
|
240
286
|
self.conv2 = nn.Conv1d(planes, planes, 1)
|
|
241
287
|
self.bn2 = nn.BatchNorm1d(planes)
|
|
242
|
-
self.se = _SELayer(planes, reduction)
|
|
288
|
+
self.se = _SELayer(planes, reduction, activation=activation)
|
|
243
289
|
self.downsample = downsample
|
|
244
290
|
self.stride = stride
|
|
245
291
|
self.features = nn.Sequential(
|
|
@@ -320,11 +366,11 @@ class _MRCNN(nn.Module):
|
|
|
320
366
|
self.dropout = nn.Dropout(drate)
|
|
321
367
|
self.inplanes = 128
|
|
322
368
|
self.AFR = self._make_layer(
|
|
323
|
-
_SEBasicBlock, after_reduced_cnn_size, 1,
|
|
369
|
+
_SEBasicBlock, after_reduced_cnn_size, 1, activation=activation_se
|
|
324
370
|
)
|
|
325
371
|
|
|
326
372
|
def _make_layer(
|
|
327
|
-
self, block, planes, blocks, stride=1,
|
|
373
|
+
self, block, planes, blocks, stride=1, activation: type[nn.Module] = nn.ReLU
|
|
328
374
|
): # makes residual SE block
|
|
329
375
|
downsample = None
|
|
330
376
|
if stride != 1 or self.inplanes != planes * block.expansion:
|
|
@@ -340,10 +386,12 @@ class _MRCNN(nn.Module):
|
|
|
340
386
|
)
|
|
341
387
|
|
|
342
388
|
layers = []
|
|
343
|
-
layers.append(
|
|
389
|
+
layers.append(
|
|
390
|
+
block(self.inplanes, planes, stride, downsample, activation=activation)
|
|
391
|
+
)
|
|
344
392
|
self.inplanes = planes * block.expansion
|
|
345
393
|
for i in range(1, blocks):
|
|
346
|
-
layers.append(block(self.inplanes, planes,
|
|
394
|
+
layers.append(block(self.inplanes, planes, activation=activation))
|
|
347
395
|
|
|
348
396
|
return nn.Sequential(*layers)
|
|
349
397
|
|
|
@@ -375,9 +423,20 @@ class _MultiHeadedAttention(nn.Module):
|
|
|
375
423
|
def __init__(self, h, d_model, after_reduced_cnn_size, dropout=0.1):
|
|
376
424
|
"""Take in model size and number of heads."""
|
|
377
425
|
super().__init__()
|
|
378
|
-
|
|
426
|
+
if (
|
|
427
|
+
isinstance(h, bool)
|
|
428
|
+
or not isinstance(h, Integral)
|
|
429
|
+
or h <= 0
|
|
430
|
+
or d_model % h != 0
|
|
431
|
+
):
|
|
432
|
+
raise ValueError(
|
|
433
|
+
"n_attn_heads must be a positive integer that divides d_model, "
|
|
434
|
+
f"got n_attn_heads={h!r} and d_model={d_model}."
|
|
435
|
+
)
|
|
436
|
+
h = int(h)
|
|
379
437
|
self.d_per_head = d_model // h
|
|
380
438
|
self.h = h
|
|
439
|
+
self.attn = torch.empty(0)
|
|
381
440
|
|
|
382
441
|
base_conv = CausalConv1d(
|
|
383
442
|
in_channels=after_reduced_cnn_size,
|
|
@@ -80,7 +80,7 @@ class _BraindecodeDocstringMeta(NumpyDocstringInheritanceInitMeta):
|
|
|
80
80
|
unwrapped function and correctly inherits ``cls.__doc__``.
|
|
81
81
|
"""
|
|
82
82
|
|
|
83
|
-
def __init__(cls, class_name, class_bases, class_dict):
|
|
83
|
+
def __init__(cls, class_name, class_bases, class_dict, **kwargs):
|
|
84
84
|
super().__init__(class_name, class_bases, class_dict)
|
|
85
85
|
# Only wrap subclass __init__s, not EEGModuleMixin itself.
|
|
86
86
|
# Wrapping the mixin would cause super().__init__() calls to
|
|
@@ -214,6 +214,8 @@ class EEGModuleMixin(_BaseHubMixin, metaclass=_BraindecodeDocstringMeta):
|
|
|
214
214
|
__jit_unused_properties__ = ["chs_info"]
|
|
215
215
|
|
|
216
216
|
def __init_subclass__(cls, **kwargs):
|
|
217
|
+
license = kwargs.pop("license", "bsd-3-clause")
|
|
218
|
+
|
|
217
219
|
# TorchScript only honours ``__jit_ignored_attributes__`` for
|
|
218
220
|
# properties defined directly on the concrete class: it collects them
|
|
219
221
|
# with ``vars(type(module))``, which skips inherited ones. Rebinding
|
|
@@ -253,8 +255,6 @@ class EEGModuleMixin(_BaseHubMixin, metaclass=_BraindecodeDocstringMeta):
|
|
|
253
255
|
)
|
|
254
256
|
repo_url = kwargs.pop("repo_url", "https://braindecode.org")
|
|
255
257
|
library_name = kwargs.pop("library_name", "braindecode")
|
|
256
|
-
license = kwargs.pop("license", "bsd-3-clause")
|
|
257
|
-
|
|
258
258
|
# Register a coder so that type[nn.Module] parameters
|
|
259
259
|
# (e.g. activation=nn.ELU) are serialized as importable
|
|
260
260
|
# strings in config.json and decoded back on load.
|
|
@@ -59,16 +59,19 @@ class CTNet(EEGModuleMixin, nn.Module):
|
|
|
59
59
|
|
|
60
60
|
Parameters
|
|
61
61
|
----------
|
|
62
|
-
|
|
63
|
-
Activation function to use in the
|
|
62
|
+
activation_patch : nn.Module, default=nn.ELU
|
|
63
|
+
Activation function to use in the convolutional patch embedding.
|
|
64
|
+
activation_transformer : nn.Module, default=nn.GELU
|
|
65
|
+
Activation function to use in the Transformer encoder.
|
|
64
66
|
num_heads : int, default=4
|
|
65
67
|
Number of attention heads in the Transformer encoder.
|
|
66
|
-
embed_dim : int or None, default=
|
|
68
|
+
embed_dim : int or None, default=40
|
|
67
69
|
Embedding size (dimensionality) for the Transformer encoder.
|
|
68
70
|
num_layers : int, default=6
|
|
69
71
|
Number of encoder layers in the Transformer.
|
|
70
|
-
n_filters_time : int, default=
|
|
71
|
-
Number of temporal filters in the first convolutional layer.
|
|
72
|
+
n_filters_time : int or None, default=None
|
|
73
|
+
Number of temporal filters in the first convolutional layer. Inferred
|
|
74
|
+
from ``embed_dim`` and ``depth_multiplier`` when left at ``None``.
|
|
72
75
|
kernel_size : int, default=64
|
|
73
76
|
Kernel size for the temporal convolutional layer.
|
|
74
77
|
depth_multiplier : int, default=2
|
|
@@ -77,7 +80,7 @@ class CTNet(EEGModuleMixin, nn.Module):
|
|
|
77
80
|
Pooling size for the first average pooling layer.
|
|
78
81
|
pool_size_2 : int, default=8
|
|
79
82
|
Pooling size for the second average pooling layer.
|
|
80
|
-
|
|
83
|
+
cnn_drop_prob : float, default=0.3
|
|
81
84
|
Dropout probability after convolutional layers.
|
|
82
85
|
att_positional_drop_prob : float, default=0.1
|
|
83
86
|
Dropout probability for the positional encoding in the Transformer.
|
{braindecode-1.8.0.dev1128 → braindecode-1.8.0.dev168891348}/braindecode/models/eegsimpleconv.py
RENAMED
|
@@ -71,17 +71,19 @@ class EEGSimpleConv(EEGModuleMixin, torch.nn.Module):
|
|
|
71
71
|
|
|
72
72
|
Parameters
|
|
73
73
|
----------
|
|
74
|
-
feature_maps: int
|
|
74
|
+
feature_maps : int
|
|
75
75
|
Number of Feature Maps at the first Convolution, width of the model.
|
|
76
|
-
n_convs: int
|
|
76
|
+
n_convs : int
|
|
77
77
|
Number of blocks of convolutions (2 convolutions per block), depth of the model.
|
|
78
|
-
|
|
78
|
+
resampling_freq : int
|
|
79
79
|
Resampling Frequency.
|
|
80
|
-
kernel_size: int
|
|
80
|
+
kernel_size : int
|
|
81
81
|
Size of the convolutions kernels.
|
|
82
|
-
|
|
82
|
+
return_feature : bool, default=False
|
|
83
|
+
If True, return the features before the final linear layer.
|
|
84
|
+
activation : nn.Module, default=nn.ReLU
|
|
83
85
|
Activation function class to apply. Should be a PyTorch activation
|
|
84
|
-
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.
|
|
86
|
+
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.ReLU``.
|
|
85
87
|
|
|
86
88
|
References
|
|
87
89
|
----------
|
|
@@ -71,21 +71,24 @@ class IFNet(EEGModuleMixin, nn.Module):
|
|
|
71
71
|
|
|
72
72
|
Parameters
|
|
73
73
|
----------
|
|
74
|
-
bands : list[tuple[
|
|
74
|
+
bands : list[tuple[float, float]] or int or None, default=[(4, 16), (16, 40)]
|
|
75
75
|
Frequency bands for filtering.
|
|
76
|
-
|
|
76
|
+
n_filters_spat : int, default=64
|
|
77
77
|
Number of output feature dimensions.
|
|
78
78
|
kernel_sizes : tuple of int, default=(63, 31)
|
|
79
79
|
List of kernel sizes for temporal convolutions.
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
stride_factor : int, default=8
|
|
81
|
+
Number of temporal segments the padded signal is split into before
|
|
82
|
+
variance pooling.
|
|
82
83
|
drop_prob : float, default=0.5
|
|
83
84
|
Dropout probability.
|
|
85
|
+
linear_max_norm : float, default=0.5
|
|
86
|
+
Maximum norm constraint on the weights of the final linear layer.
|
|
84
87
|
activation : nn.Module, default=nn.GELU
|
|
85
88
|
Activation function after the InterFrequency Layer.
|
|
86
89
|
verbose : bool, default=False
|
|
87
90
|
Verbose to control the filtering layer
|
|
88
|
-
filter_parameters : dict, default=
|
|
91
|
+
filter_parameters : dict or None, default=None
|
|
89
92
|
Additional parameters for the filter bank layer.
|
|
90
93
|
|
|
91
94
|
References
|
|
@@ -26,10 +26,12 @@ class SleepStagerBlanco2020(EEGModuleMixin, nn.Module):
|
|
|
26
26
|
----------
|
|
27
27
|
n_conv_chans : int
|
|
28
28
|
Number of convolutional channels. Set to 20 in [Blanco2020]_.
|
|
29
|
+
max_pool_size : int, default=2
|
|
30
|
+
Kernel and stride of the max pooling layers.
|
|
29
31
|
n_groups : int
|
|
30
32
|
Number of groups for the convolution. Set to 2 in [Blanco2020]_ for 2 Channel EEG.
|
|
31
|
-
|
|
32
|
-
divisible by n_groups
|
|
33
|
+
Controls the connections between inputs and outputs. ``n_chans`` and
|
|
34
|
+
``n_conv_chans`` must be divisible by ``n_groups``.
|
|
33
35
|
drop_prob : float
|
|
34
36
|
Dropout rate before the output dense layer.
|
|
35
37
|
apply_batch_norm : bool
|
|
@@ -39,13 +41,7 @@ class SleepStagerBlanco2020(EEGModuleMixin, nn.Module):
|
|
|
39
41
|
If True, return the features, i.e. the output of the feature extractor
|
|
40
42
|
(before the final linear layer). If False, pass the features through
|
|
41
43
|
the final linear layer.
|
|
42
|
-
|
|
43
|
-
Alias for `n_chans`.
|
|
44
|
-
n_classes : int
|
|
45
|
-
Alias for `n_outputs`.
|
|
46
|
-
input_size_s : float
|
|
47
|
-
Alias for `input_window_seconds`.
|
|
48
|
-
activation: nn.Module, default=nn.ReLU
|
|
44
|
+
activation : nn.Module, default=nn.ReLU
|
|
49
45
|
Activation function class to apply. Should be a PyTorch activation
|
|
50
46
|
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.ReLU``.
|
|
51
47
|
|
|
@@ -43,13 +43,7 @@ class SleepStagerChambon2018(EEGModuleMixin, nn.Module):
|
|
|
43
43
|
If True, return the features, i.e. the output of the feature extractor
|
|
44
44
|
(before the final linear layer). If False, pass the features through
|
|
45
45
|
the final linear layer.
|
|
46
|
-
|
|
47
|
-
Alias for `n_chans`.
|
|
48
|
-
input_size_s:
|
|
49
|
-
Alias for `input_window_seconds`.
|
|
50
|
-
n_classes:
|
|
51
|
-
Alias for `n_outputs`.
|
|
52
|
-
activation: nn.Module, default=nn.ReLU
|
|
46
|
+
activation : nn.Module, default=nn.ReLU
|
|
53
47
|
Activation function class to apply. Should be a PyTorch activation
|
|
54
48
|
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.ReLU``.
|
|
55
49
|
|
|
@@ -33,7 +33,7 @@ class SPARCNet(EEGModuleMixin, nn.Module):
|
|
|
33
33
|
Number of layers per dense block. Default is 4.
|
|
34
34
|
growth_rate : int, optional
|
|
35
35
|
Growth rate of the DenseNet. Default is 16.
|
|
36
|
-
|
|
36
|
+
bottleneck_size : int, optional
|
|
37
37
|
Bottleneck size. Default is 16.
|
|
38
38
|
drop_prob : float, optional
|
|
39
39
|
Dropout rate. Default is 0.5.
|
|
@@ -41,7 +41,7 @@ class SPARCNet(EEGModuleMixin, nn.Module):
|
|
|
41
41
|
Whether to use bias in convolutional layers. Default is True.
|
|
42
42
|
batch_norm : bool, optional
|
|
43
43
|
Whether to use batch normalization. Default is True.
|
|
44
|
-
activation: nn.Module, default=nn.ELU
|
|
44
|
+
activation : nn.Module, default=nn.ELU
|
|
45
45
|
Activation function class to apply. Should be a PyTorch activation
|
|
46
46
|
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.ELU``.
|
|
47
47
|
|
|
@@ -31,7 +31,7 @@ SincShallowNet,Motor Imagery,Prediction,250,"n_chans, n_outputs, n_times, sfreq"
|
|
|
31
31
|
ShallowFBCSPNet,General,Prediction,250,"n_chans, n_outputs, n_times",46084,"ShallowFBCSPNet(n_chans=22, n_outputs=4, n_times=1000, sfreq=250)","Convolution",EEG
|
|
32
32
|
SleepStagerBlanco2020,Sleep Staging,Prediction,100,"n_chans, n_outputs, n_times",2845,"SleepStagerBlanco2020(n_chans=2, n_outputs=5, n_times=3000, sfreq=100)","Convolution",EEG
|
|
33
33
|
SleepStagerChambon2018,Sleep Staging,Prediction,128,"n_chans, n_outputs, n_times, sfreq",5835,"SleepStagerChambon2018(n_chans=2, n_outputs=5, n_times=3840, sfreq=128)","Convolution",EEG
|
|
34
|
-
AttnSleep,Sleep Staging,Prediction,100,"n_chans, n_outputs, n_times, sfreq",
|
|
34
|
+
AttnSleep,Sleep Staging,Prediction,100,"n_chans, n_outputs, n_times, sfreq",522805,"AttnSleep(n_chans=1, n_outputs=5, n_times=3000, sfreq=100)","Convolution, Attention/Transformer",EEG
|
|
35
35
|
SPARCNet,Epilepsy,Prediction,200,"n_chans, n_outputs, n_times",1141921,"SPARCNet(n_chans=16, n_outputs=6, n_times=2000, sfreq=200)","Convolution",EEG
|
|
36
36
|
SyncNet,"Emotion Recognition, Alcoholism",Prediction,256,"n_chans, n_outputs, n_times",554,"SyncNet(n_chans=62, n_outputs=3, n_times=5120, sfreq=256)","Interpretability",EEG
|
|
37
37
|
TSception,Emotion Recognition,Prediction,256,"n_chans, n_outputs, n_times, sfreq",2187206,"TSception(n_chans=62, n_outputs=3, n_times=5120, sfreq=256)","Convolution",EEG
|
|
@@ -45,13 +45,7 @@ class TIDNet(EEGModuleMixin, nn.Module):
|
|
|
45
45
|
summary : int
|
|
46
46
|
Output size of AdaptiveAvgPool1D layer. If set to -1, value will be calculated
|
|
47
47
|
automatically (n_times // pooling).
|
|
48
|
-
|
|
49
|
-
Alias for n_chans.
|
|
50
|
-
n_classes:
|
|
51
|
-
Alias for n_outputs.
|
|
52
|
-
input_window_samples :
|
|
53
|
-
Alias for n_times.
|
|
54
|
-
activation: nn.Module, default=nn.LeakyReLU
|
|
48
|
+
activation : nn.Module, default=nn.LeakyReLU
|
|
55
49
|
Activation function class to apply. Should be a PyTorch activation
|
|
56
50
|
module class like ``nn.ReLU`` or ``nn.ELU``. Default is ``nn.LeakyReLU``.
|
|
57
51
|
|