braindecode 1.8.1.dev182582231__tar.gz → 1.8.1.dev183849953__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.1.dev182582231 → braindecode-1.8.1.dev183849953}/NOTICE.txt +10 -0
- {braindecode-1.8.1.dev182582231/braindecode.egg-info → braindecode-1.8.1.dev183849953}/PKG-INFO +1 -1
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/base.py +4 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datautil/serialization.py +4 -1
- braindecode-1.8.1.dev183849953/braindecode/functional/_real_dft.py +138 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/functional/functions.py +14 -1
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/__init__.py +6 -0
- braindecode-1.8.1.dev183849953/braindecode/models/barista.py +699 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/base.py +25 -2
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/bendr.py +2 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/biot.py +1 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/cbramod.py +3 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegdino.py +2 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegpt.py +1 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/labram.py +1 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/meta_neuromotor.py +1 -0
- braindecode-1.8.1.dev183849953/braindecode/models/mirepnet.py +368 -0
- braindecode-1.8.1.dev183849953/braindecode/models/mscformer.py +502 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/mvpformer.py +13 -6
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/reve.py +7 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/signal_jepa.py +30 -11
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/steegformer.py +66 -19
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/summary.csv +3 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/util.py +133 -1
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/zuna.py +18 -5
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/attention.py +7 -1
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/filter.py +25 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/parametrization.py +21 -8
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/preprocessing/windowers.py +20 -5
- braindecode-1.8.1.dev183849953/braindecode/version.py +1 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953/braindecode.egg-info}/PKG-INFO +1 -1
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode.egg-info/SOURCES.txt +4 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/api.rst +3 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/whats_new.rst +118 -0
- braindecode-1.8.1.dev182582231/braindecode/version.py +0 -1
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/LICENSE.txt +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/MANIFEST.in +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/README.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/augmentation/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/augmentation/base.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/augmentation/functional.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/augmentation/transforms.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/classifier.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/_notebook_viewer.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bbci.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bcicomp.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/datasets.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/format.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/hub.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/hub_format.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/hub_io.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/hub_validation.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/bids/iterable.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/chb_mit.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/collate.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/mne.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/moabb.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/nmt.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/registry.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/siena.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/sleep_physio_challe_18.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/sleep_physionet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/tuh.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/utils.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/xy.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datautil/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datautil/channel_utils.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datautil/hub_formats.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datautil/util.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/eegneuralnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/functional/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/functional/initialization.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/atcnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/attentionbasenet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/attn_sleep.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/brainbert.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/brainmodule.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/brant.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/codebrain.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/config.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/contrawr.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/ctnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/dance.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/deep4.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/deepsleepnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/dgcnn.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegconformer.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eeginception_erp.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eeginception_mi.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegitnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegminer.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegnex.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegsimpleconv.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegsym.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/eegtcnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/emg2qwerty.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/fbcnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/fblightconvnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/fbmsnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/hybrid.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/ifnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/interpolated.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/luna.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/medformer.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/msvtnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/neuropose.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/patchedtransformer.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sccnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sensingdynamics.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/shallow_fbcsp.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sinc_shallow.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sleep_stager_blanco_2020.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sleep_stager_chambon_2018.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sparcnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/sstdpn.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/syncnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/tcformer.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/tcn.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/tidnet.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/tsinception.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/usleep.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/vemg2pose.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/activation.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/blocks.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/convolution.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/dance_modules.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/interpolation.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/layers.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/linear.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/stats.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/util.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/modules/wrapper.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/preprocessing/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/preprocessing/eegprep_preprocess.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/preprocessing/mne_preprocess.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/preprocessing/preprocess.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/preprocessing/util.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/regressor.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/samplers/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/samplers/base.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/samplers/ssl.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/training/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/training/callbacks.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/training/losses.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/training/scoring.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/util.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/__init__.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/activations.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/attribution.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/confusion_matrices.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/frequency.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/metrics.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/sanity.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/visualization/topology.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode.egg-info/dependency_links.txt +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode.egg-info/requires.txt +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode.egg-info/top_level.txt +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/Makefile +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/_templates/autosummary/class.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/_templates/autosummary/class_in_subdir.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/_templates/autosummary/function.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/_templates/autosummary/function_in_subdir.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/cite.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/conf.py +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/help.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/index.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/install/install.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/install/install_pip.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/install/install_source.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/attention.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/channel.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/convolution.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/filterbank.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/gnn.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/interpretable.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/lbm.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/recurrent.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/categorization/spd.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/models.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/models_categorization.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/models_table.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/models/models_visualization.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/docs/sg_execution_times.rst +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/pyproject.toml +0 -0
- {braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/setup.cfg +0 -0
|
@@ -42,6 +42,7 @@ The following components are licensed under the MIT License:
|
|
|
42
42
|
- `braindecode/models/medformer.py`
|
|
43
43
|
- `braindecode/models/tcformer.py`
|
|
44
44
|
- `braindecode/models/ifnet.py`
|
|
45
|
+
- `braindecode/models/mirepnet.py`
|
|
45
46
|
|
|
46
47
|
### Apache-2.0 Licensed Files
|
|
47
48
|
|
|
@@ -51,6 +52,14 @@ The following components are licensed under the Apache License 2.0:
|
|
|
51
52
|
- `braindecode/models/zuna.py`
|
|
52
53
|
- `braindecode/models/luna.py`
|
|
53
54
|
- `braindecode/models/brant.py`
|
|
55
|
+
- `braindecode/models/mscformer.py`
|
|
56
|
+
|
|
57
|
+
### USC Academic License Files
|
|
58
|
+
|
|
59
|
+
[License](https://github.com/ShanechiLab/BaRISTA/blob/master/LICENSE.md)
|
|
60
|
+
|
|
61
|
+
- `braindecode/models/barista.py`
|
|
62
|
+
- `docs/_static/model/barista.jpeg`
|
|
54
63
|
|
|
55
64
|
## License Links
|
|
56
65
|
|
|
@@ -59,6 +68,7 @@ The following components are licensed under the Apache License 2.0:
|
|
|
59
68
|
- [CC BY-NC-SA 4.0 License](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
|
60
69
|
- [MIT License](https://opensource.org/licenses/MIT)
|
|
61
70
|
- [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0)
|
|
71
|
+
- [USC Academic License](https://github.com/ShanechiLab/BaRISTA/blob/master/LICENSE.md)
|
|
62
72
|
|
|
63
73
|
## Note
|
|
64
74
|
|
{braindecode-1.8.1.dev182582231/braindecode.egg-info → braindecode-1.8.1.dev183849953}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: braindecode
|
|
3
|
-
Version: 1.8.1.
|
|
3
|
+
Version: 1.8.1.dev183849953
|
|
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>
|
{braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/datasets/base.py
RENAMED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
# Simon Brandt <simonbrandt@protonmail.com>
|
|
6
6
|
# David Sabbagh <dav.sabbagh@gmail.com>
|
|
7
7
|
# Robin Schirrmeister <robintibor@gmail.com>
|
|
8
|
+
# Sarthak Tayal <sarthaktayal2@gmail.com>
|
|
8
9
|
#
|
|
9
10
|
# License: BSD (3-clause)
|
|
10
11
|
|
|
@@ -1398,6 +1399,9 @@ class BaseConcatDataset(ConcatDataset, HubDatasetMixin, Generic[T]):
|
|
|
1398
1399
|
df = ds._windows.metadata
|
|
1399
1400
|
else:
|
|
1400
1401
|
df = ds.metadata
|
|
1402
|
+
if isinstance(df, pd.DataFrame):
|
|
1403
|
+
# copy so the description columns stay out of the dataset
|
|
1404
|
+
df = df.copy()
|
|
1401
1405
|
for k, v in ds.description.items():
|
|
1402
1406
|
df[k] = v
|
|
1403
1407
|
all_dfs.append(df)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Convenience functions for storing and loading of windows datasets."""
|
|
2
2
|
|
|
3
3
|
# Authors: Lukas Gemein <l.gemein@gmail.com>
|
|
4
|
+
# Sarthak Tayal <sarthaktayal2@gmail.com>
|
|
4
5
|
#
|
|
5
6
|
# License: BSD (3-clause)
|
|
6
7
|
|
|
@@ -270,7 +271,9 @@ def _load_parallel(path, i, preload, is_raw, has_stored_windows):
|
|
|
270
271
|
else:
|
|
271
272
|
window_kwargs = _load_kwargs_json("window_kwargs", sub_dir)
|
|
272
273
|
windows_ds_kwargs = [
|
|
273
|
-
kwargs[1]
|
|
274
|
+
kwargs[1]
|
|
275
|
+
for kwargs in window_kwargs
|
|
276
|
+
if kwargs[0] in ("WindowsDataset", "EEGWindowsDataset")
|
|
274
277
|
]
|
|
275
278
|
windows_ds_kwargs = windows_ds_kwargs[0] if len(windows_ds_kwargs) == 1 else {}
|
|
276
279
|
if is_raw:
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"""Real-valued DFT helpers for accelerators without complex tensors.
|
|
2
|
+
|
|
3
|
+
Intel Gaudi (HPU) has no complex dtype, so ``torch.fft`` with complex outputs
|
|
4
|
+
cannot run there. These helpers express the one-sided DFT, and the inverse
|
|
5
|
+
transforms built on top of it, as matmuls against a cosine/sine basis. Under
|
|
6
|
+
bfloat16 autocast those matmuls would run in bfloat16, whereas ``torch.fft`` is
|
|
7
|
+
never downcast, so callers wrap the numerically sensitive parts with
|
|
8
|
+
:func:`fp32_island`.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
# Authors: Bruno Aristimunha <b.aristimunha@gmail.com>
|
|
12
|
+
#
|
|
13
|
+
# License: BSD (3-clause)
|
|
14
|
+
import functools
|
|
15
|
+
|
|
16
|
+
import torch
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def needs_real_dft(x: torch.Tensor) -> bool:
|
|
20
|
+
"""Whether ``x`` lives on a device without complex-tensor FFT support."""
|
|
21
|
+
return x.device.type == "hpu"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def fp32_island(fn):
|
|
25
|
+
"""Run ``fn`` with autocast disabled, in at least float32 precision.
|
|
26
|
+
|
|
27
|
+
Any bfloat16/float16 tensor argument is upcast to float32 before ``fn``
|
|
28
|
+
runs; float32 and float64 arguments are left untouched, so the same code
|
|
29
|
+
path can also be checked against a float64 ``torch.fft`` reference.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
@functools.wraps(fn)
|
|
33
|
+
def wrapped(*args, **kwargs):
|
|
34
|
+
ref = next(a for a in args if isinstance(a, torch.Tensor))
|
|
35
|
+
with torch.autocast(device_type=ref.device.type, enabled=False):
|
|
36
|
+
args = tuple(
|
|
37
|
+
a.float()
|
|
38
|
+
if isinstance(a, torch.Tensor)
|
|
39
|
+
and a.is_floating_point()
|
|
40
|
+
and torch.finfo(a.dtype).bits < 32
|
|
41
|
+
else a
|
|
42
|
+
for a in args
|
|
43
|
+
)
|
|
44
|
+
return fn(*args, **kwargs)
|
|
45
|
+
|
|
46
|
+
return wrapped
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def real_dft_basis(n, *, device, dtype):
|
|
50
|
+
"""One-sided cosine/sine basis of an ``n``-point DFT, shape ``(n // 2 + 1, n)``.
|
|
51
|
+
|
|
52
|
+
The phase index is reduced modulo ``n`` in integers before scaling, so the
|
|
53
|
+
DC row is exact (``sin`` is exactly zero there); the Nyquist row (present
|
|
54
|
+
for even ``n``) is exact to floating-point precision.
|
|
55
|
+
"""
|
|
56
|
+
if n <= 0:
|
|
57
|
+
raise ValueError("n must be positive")
|
|
58
|
+
if (n // 2) * (n - 1) >= 2**31:
|
|
59
|
+
# The int32 phase index below would overflow and give wrong phases.
|
|
60
|
+
raise ValueError(f"n={n} exceeds the 65536 samples of the real-valued DFT")
|
|
61
|
+
freqs = torch.arange(n // 2 + 1, device=device, dtype=torch.int32)
|
|
62
|
+
samples = torch.arange(n, device=device, dtype=torch.int32)
|
|
63
|
+
phase_index = (freqs[:, None] * samples[None, :]) % n
|
|
64
|
+
angles = 2 * torch.pi * phase_index.to(dtype) / n
|
|
65
|
+
return angles.cos(), angles.sin()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def real_rfft(x):
|
|
69
|
+
"""Real and imaginary parts of ``torch.fft.rfft(x, dim=-1)`` without complex tensors."""
|
|
70
|
+
n = x.shape[-1]
|
|
71
|
+
cosine, sine = real_dft_basis(n, device=x.device, dtype=x.dtype)
|
|
72
|
+
return x @ cosine.transpose(0, 1), -(x @ sine.transpose(0, 1))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def real_irfft(real, imag, *, n):
|
|
76
|
+
"""``torch.fft.irfft(torch.complex(real, imag), n=n, dim=-1)`` without complex tensors."""
|
|
77
|
+
if real.shape[-1] != n // 2 + 1:
|
|
78
|
+
raise ValueError(
|
|
79
|
+
f"expected {n // 2 + 1} one-sided bins for n={n}, got {real.shape[-1]}"
|
|
80
|
+
)
|
|
81
|
+
cosine, sine = real_dft_basis(n, device=real.device, dtype=real.dtype)
|
|
82
|
+
output = real[..., :1] @ cosine[:1, :]
|
|
83
|
+
if n % 2 == 0:
|
|
84
|
+
interior = slice(1, -1)
|
|
85
|
+
output = output + real[..., -1:] @ cosine[-1:, :]
|
|
86
|
+
else:
|
|
87
|
+
interior = slice(1, None)
|
|
88
|
+
if real.shape[-1] > (2 if n % 2 == 0 else 1):
|
|
89
|
+
output = output + 2 * (
|
|
90
|
+
real[..., interior] @ cosine[interior, :]
|
|
91
|
+
- imag[..., interior] @ sine[interior, :]
|
|
92
|
+
)
|
|
93
|
+
return output / n
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def real_analytic_ifft(real, imag, *, n):
|
|
97
|
+
"""Inverse ``n``-point FFT of a one-sided spectrum, without complex tensors.
|
|
98
|
+
|
|
99
|
+
``real``/``imag`` hold the bins ``0 .. n // 2`` of a length-``n`` spectrum
|
|
100
|
+
whose remaining (negative-frequency) bins are zero, so this is a plain
|
|
101
|
+
(non-Hermitian) inverse DFT, not :func:`real_irfft`. Returns the real and
|
|
102
|
+
imaginary parts of the generally complex time-domain signal, each of shape
|
|
103
|
+
``(..., n)``. This is the last step of :func:`hilbert_freq_real`.
|
|
104
|
+
"""
|
|
105
|
+
if real.shape[-1] != n // 2 + 1:
|
|
106
|
+
raise ValueError(
|
|
107
|
+
f"expected {n // 2 + 1} one-sided bins for n={n}, got {real.shape[-1]}"
|
|
108
|
+
)
|
|
109
|
+
cosine, sine = real_dft_basis(n, device=real.device, dtype=real.dtype)
|
|
110
|
+
out_real = (real @ cosine - imag @ sine) / n
|
|
111
|
+
out_imag = (real @ sine + imag @ cosine) / n
|
|
112
|
+
return out_real, out_imag
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@torch.jit.unused
|
|
116
|
+
def hilbert_freq_real(x: torch.Tensor, forward_fourier: bool) -> torch.Tensor:
|
|
117
|
+
"""Real-valued equivalent of :func:`braindecode.functional.hilbert_freq`.
|
|
118
|
+
|
|
119
|
+
Lives here rather than in ``functions.py`` because ``torch.jit.unused`` needs
|
|
120
|
+
real annotations, and ``functions.py`` uses ``from __future__ import annotations``.
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
@fp32_island
|
|
124
|
+
def compute(x):
|
|
125
|
+
if forward_fourier:
|
|
126
|
+
seq_len = x.shape[-1]
|
|
127
|
+
real, imag = real_rfft(x)
|
|
128
|
+
else:
|
|
129
|
+
seq_len = 2 * (x.shape[-2] - 1)
|
|
130
|
+
real, imag = x[..., 0], x[..., 1]
|
|
131
|
+
scale = torch.full((real.shape[-1],), 2.0, dtype=real.dtype, device=real.device)
|
|
132
|
+
scale[0] = 1.0 # Don't multiply the DC-term by 2
|
|
133
|
+
if forward_fourier and seq_len % 2 == 0:
|
|
134
|
+
scale[-1] = 1.0 # Nor the Nyquist term, which only exists for even lengths
|
|
135
|
+
out_real, out_imag = real_analytic_ifft(real * scale, imag * scale, n=seq_len)
|
|
136
|
+
return torch.stack((out_real, out_imag), dim=-1)
|
|
137
|
+
|
|
138
|
+
return compute(x)
|
|
@@ -12,6 +12,8 @@ import numpy as np
|
|
|
12
12
|
import torch
|
|
13
13
|
import torch.nn.functional as F
|
|
14
14
|
|
|
15
|
+
from . import _real_dft
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
def square(x):
|
|
17
19
|
return x * x
|
|
@@ -165,6 +167,9 @@ def hilbert_freq(x: torch.Tensor, forward_fourier: bool = True) -> torch.Tensor:
|
|
|
165
167
|
https://github.com/scipy/scipy/blob/v1.14.1/scipy/signal/_signaltools.py#L2287-L2394
|
|
166
168
|
|
|
167
169
|
"""
|
|
170
|
+
if _real_dft.needs_real_dft(x):
|
|
171
|
+
return _real_dft.hilbert_freq_real(x, forward_fourier).to(x.dtype)
|
|
172
|
+
|
|
168
173
|
input_dtype = x.dtype
|
|
169
174
|
# ``view_as_complex`` does not accept bfloat16 real/imaginary pairs. The
|
|
170
175
|
# HPU path can produce bfloat16 Fourier coefficients under autocast, so do
|
|
@@ -175,12 +180,20 @@ def hilbert_freq(x: torch.Tensor, forward_fourier: bool = True) -> torch.Tensor:
|
|
|
175
180
|
x = x.float()
|
|
176
181
|
|
|
177
182
|
if forward_fourier:
|
|
183
|
+
seq_len = x.shape[-1]
|
|
178
184
|
x = torch.fft.rfft(x, norm=None, dim=-1)
|
|
179
185
|
x = torch.view_as_real(x)
|
|
186
|
+
else:
|
|
187
|
+
# The one-sided spectrum does not record whether the signal length
|
|
188
|
+
# was odd or even, so assume an even length here.
|
|
189
|
+
seq_len = 2 * (x.shape[-2] - 1)
|
|
180
190
|
x = x * 2.0
|
|
181
191
|
x[..., 0, :] = x[..., 0, :] / 2.0 # Don't multiply the DC-term by 2
|
|
192
|
+
if forward_fourier and seq_len % 2 == 0:
|
|
193
|
+
# Nor the Nyquist term, which only exists for even lengths
|
|
194
|
+
x[..., -1, :] = x[..., -1, :] / 2.0
|
|
182
195
|
x = F.pad(
|
|
183
|
-
x, [0, 0, 0, x.shape[-2]
|
|
196
|
+
x, [0, 0, 0, seq_len - x.shape[-2]]
|
|
184
197
|
) # Fill Fourier coefficients to retain shape
|
|
185
198
|
x = torch.view_as_complex(x)
|
|
186
199
|
x = torch.fft.ifft(x, norm=None, dim=-1) # returns complex signal
|
{braindecode-1.8.1.dev182582231 → braindecode-1.8.1.dev183849953}/braindecode/models/__init__.py
RENAMED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from .atcnet import ATCNet
|
|
4
4
|
from .attentionbasenet import AttentionBaseNet
|
|
5
5
|
from .attn_sleep import AttnSleep
|
|
6
|
+
from .barista import BaRISTA
|
|
6
7
|
from .base import EEGModuleMixin
|
|
7
8
|
from .bendr import BENDR, InterpolatedBENDR
|
|
8
9
|
from .biot import BIOT, InterpolatedBIOT
|
|
@@ -40,6 +41,8 @@ from .labram import InterpolatedLaBraM, Labram
|
|
|
40
41
|
from .luna import LUNA
|
|
41
42
|
from .medformer import MEDFormer
|
|
42
43
|
from .meta_neuromotor import MetaNeuromotorHand
|
|
44
|
+
from .mirepnet import MIRepNet
|
|
45
|
+
from .mscformer import MSCFormer
|
|
43
46
|
from .msvtnet import MSVTNet
|
|
44
47
|
from .mvpformer import MVPFormer
|
|
45
48
|
from .neuropose import NeuroPose
|
|
@@ -86,6 +89,7 @@ __all__ = [
|
|
|
86
89
|
"ATCNet",
|
|
87
90
|
"AttnSleep",
|
|
88
91
|
"AttentionBaseNet",
|
|
92
|
+
"BaRISTA",
|
|
89
93
|
"EEGModuleMixin",
|
|
90
94
|
"BIOT",
|
|
91
95
|
"BENDR",
|
|
@@ -133,6 +137,8 @@ __all__ = [
|
|
|
133
137
|
"extract_channel_locations_from_chs_info",
|
|
134
138
|
"positions_from_chs_info",
|
|
135
139
|
"MEDFormer",
|
|
140
|
+
"MIRepNet",
|
|
141
|
+
"MSCFormer",
|
|
136
142
|
"MSVTNet",
|
|
137
143
|
"MVPFormer",
|
|
138
144
|
"PBT",
|