braindecode 2.1.0.dev4294968713__tar.gz → 2.1.0.dev4294968715__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-2.1.0.dev4294968713/braindecode.egg-info → braindecode-2.1.0.dev4294968715}/PKG-INFO +2 -2
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/augmentation/base.py +2 -2
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/augmentation/functional.py +9 -9
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bbci.py +5 -3
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/hub_format.py +1 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/registry.py +4 -2
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/sleep_physio_challe_18.py +1 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/xy.py +1 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/eegneuralnet.py +3 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/_lfilter.py +3 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/base.py +14 -6
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/config.py +9 -5
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sinc_shallow.py +1 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tidnet.py +6 -4
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/stats.py +6 -6
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/preprocessing/__init__.py +1 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/preprocessing/mne_preprocess.py +9 -0
- braindecode-2.1.0.dev4294968715/braindecode/version.py +1 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715/braindecode.egg-info}/PKG-INFO +2 -2
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode.egg-info/requires.txt +1 -1
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/agent_docs.rst +8 -6
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/conf.py +36 -22
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/whats_new.rst +13 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/pyproject.toml +78 -10
- braindecode-2.1.0.dev4294968715/setup.cfg +18 -0
- braindecode-2.1.0.dev4294968713/braindecode/version.py +0 -1
- braindecode-2.1.0.dev4294968713/setup.cfg +0 -40
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/LICENSE.txt +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/MANIFEST.in +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/NOTICE.txt +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/README.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/augmentation/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/augmentation/transforms.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/classifier.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/_notebook_viewer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/base.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bcicomp.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/datasets.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/hub.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/hub_io.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/hub_validation.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bids/iterable.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/chb_mit.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/collate.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/mne.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/moabb.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/nmt.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/siena.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/sleep_physionet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/tuh.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/utils.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datautil/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datautil/channel_utils.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datautil/hub_formats.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datautil/serialization.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datautil/util.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/_real_dft.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/attention.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/channel_mask.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/channels.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/functions.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/initialization.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/functional/patches.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/atcnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/attentionbasenet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/attn_sleep.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/axon.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/barista.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/bbl.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/bendr.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/biot.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/brainbert.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/brainmodule.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/brainomni.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/brant.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/caresleepnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/cbramod.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/codebrain.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/contrawr.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/corteg.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/csbrain.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/ctnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/dance.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/deep4.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/deepsleepnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/dgcnn.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/diver1.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/duin.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eeg_clip.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegconformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegdino.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eeginception_erp.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eeginception_mi.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegitnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegminer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegnex.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegpt.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegsimpleconv.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegsym.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/eegtcnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/emg2qwerty.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/epint.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fbcnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fblightconvnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fbmsnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fnirs4d.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fnirs_cnn1d.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fnirs_t.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/fnirsnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/gcnsnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/geonirs.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/guetschel2026.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/hybrid.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/ifnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/jung_mae.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/labram.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/luna.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/mapa.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/medformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/meggpt.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/megxl.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/meta_neuromotor.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/mirepnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/model.html.jinja +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/mscformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/msvtnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/mtrenirs.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/mvpformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/neuropose.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/neurorvq.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/neurorvq_tokenizer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/nice.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/patchedtransformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/popt.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/pratibha2.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/reve.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/samba.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sccnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/seizure_transformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sensingdynamics.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/shallow_fbcsp.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/signal_jepa.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sleep_stager_blanco_2020.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sleep_stager_chambon_2018.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sleepfm.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sparcnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/sstdpn.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/steegformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/summary.csv +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/syncnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tccnet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tcformer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tcn.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tfm_tokenizer.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tinymyo.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tmsanet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tsinception.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/usleep.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/util.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/vemg2pose.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/zuna.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/activation.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/attention.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/blocks.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/channels.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/convolution.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/dance_modules.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/filter.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/layers.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/linear.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/linear_attention.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/parametrization.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/quantization.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/seanet.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/spatial_temporal.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/util.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/wrapper.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/preprocessing/eegprep_preprocess.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/preprocessing/preprocess.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/preprocessing/util.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/preprocessing/windowers.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/regressor.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/samplers/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/samplers/base.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/samplers/ssl.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/training/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/training/_trial_aggregation.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/training/callbacks.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/training/losses.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/training/scoring.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/util.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/__init__.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/activations.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/attribution.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/confusion_matrices.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/frequency.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/metrics.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/sanity.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/visualization/topology.py +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode.egg-info/SOURCES.txt +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode.egg-info/dependency_links.txt +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode.egg-info/top_level.txt +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/Makefile +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/_templates/autosummary/class.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/_templates/autosummary/class_in_subdir.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/_templates/autosummary/function.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/_templates/autosummary/function_in_subdir.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/api.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/cite.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/help.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/index.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/install/gaudi.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/install/install.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/install/install_pip.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/install/install_source.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/attention.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/channel.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/convolution.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/filterbank.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/gnn.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/interpretable.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/lbm.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/recurrent.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/categorization/spd.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/channel_strategies.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/models.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/models_categorization.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/models_table.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/models/models_visualization.rst +0 -0
- {braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/docs/sg_execution_times.rst +0 -0
{braindecode-2.1.0.dev4294968713/braindecode.egg-info → braindecode-2.1.0.dev4294968715}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: braindecode
|
|
3
|
-
Version: 2.1.0.
|
|
3
|
+
Version: 2.1.0.dev4294968715
|
|
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>
|
|
@@ -55,7 +55,7 @@ Requires-Dist: pytest-xdist>=3.8.0; extra == "tests"
|
|
|
55
55
|
Requires-Dist: pytest-timeout; extra == "tests"
|
|
56
56
|
Requires-Dist: codecov; extra == "tests"
|
|
57
57
|
Requires-Dist: pytest_cases; extra == "tests"
|
|
58
|
-
Requires-Dist:
|
|
58
|
+
Requires-Dist: ty>=0.0.107; extra == "tests"
|
|
59
59
|
Requires-Dist: ipython; extra == "tests"
|
|
60
60
|
Requires-Dist: transformers>=4.57.0; extra == "tests"
|
|
61
61
|
Requires-Dist: bids_validator; extra == "tests"
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/augmentation/base.py
RENAMED
|
@@ -25,9 +25,9 @@ Output = Union[
|
|
|
25
25
|
# outputting (X, y) where y can be a tensor or tuple of tensors
|
|
26
26
|
tuple[torch.Tensor, Union[torch.Tensor, tuple[torch.Tensor, ...]]],
|
|
27
27
|
]
|
|
28
|
-
# (X, y) -> (X', y') where y' can be a tensor or a tuple of tensors
|
|
28
|
+
# (X, y, *args, **kwargs) -> (X', y') where y' can be a tensor or a tuple of tensors
|
|
29
29
|
Operation = Callable[
|
|
30
|
-
|
|
30
|
+
...,
|
|
31
31
|
tuple[torch.Tensor, Union[torch.Tensor, tuple[torch.Tensor, ...]]],
|
|
32
32
|
]
|
|
33
33
|
|
|
@@ -189,9 +189,7 @@ def ft_surrogate(
|
|
|
189
189
|
preprint arXiv:1806.08675.
|
|
190
190
|
"""
|
|
191
191
|
assert (
|
|
192
|
-
isinstance(
|
|
193
|
-
phase_noise_magnitude, (Real, torch.FloatTensor, torch.cuda.FloatTensor)
|
|
194
|
-
)
|
|
192
|
+
isinstance(phase_noise_magnitude, (Real, torch.Tensor))
|
|
195
193
|
and 0 <= phase_noise_magnitude <= 1
|
|
196
194
|
), f"eps must be a float between 0 and 1. Got {phase_noise_magnitude}."
|
|
197
195
|
|
|
@@ -270,7 +268,9 @@ def channels_dropout(
|
|
|
270
268
|
|
|
271
269
|
|
|
272
270
|
def _make_channel_permutation(
|
|
273
|
-
X: torch.Tensor,
|
|
271
|
+
X: torch.Tensor,
|
|
272
|
+
mask: torch.Tensor,
|
|
273
|
+
random_state: int | np.random.RandomState | None,
|
|
274
274
|
) -> torch.Tensor:
|
|
275
275
|
"""Per-sample channel permutation that shuffles only the masked channels.
|
|
276
276
|
|
|
@@ -909,7 +909,7 @@ def _torch_make_interpolation_matrix(
|
|
|
909
909
|
|
|
910
910
|
try:
|
|
911
911
|
C_inv = torch.linalg.inv(C)
|
|
912
|
-
except torch.
|
|
912
|
+
except torch.linalg.LinAlgError:
|
|
913
913
|
# There is a stability issue with pinv since torch v1.8.0
|
|
914
914
|
# see https://github.com/pytorch/pytorch/issues/75494
|
|
915
915
|
C_inv = torch.linalg.pinv(C.cpu()).to(device)
|
|
@@ -1054,7 +1054,7 @@ def sensors_rotation(
|
|
|
1054
1054
|
|
|
1055
1055
|
def mixup(
|
|
1056
1056
|
X: torch.Tensor, y: torch.Tensor, lam: torch.Tensor, idx_perm: torch.Tensor
|
|
1057
|
-
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
1057
|
+
) -> tuple[torch.Tensor, tuple[torch.Tensor, torch.Tensor, torch.Tensor]]:
|
|
1058
1058
|
"""Mixes two channels of EEG data.
|
|
1059
1059
|
|
|
1060
1060
|
See [1]_ for details.
|
|
@@ -1108,7 +1108,7 @@ def cutmix(
|
|
|
1108
1108
|
idx_perm: torch.Tensor,
|
|
1109
1109
|
cut_t_start: torch.Tensor,
|
|
1110
1110
|
cut_t_len: torch.Tensor,
|
|
1111
|
-
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
1111
|
+
) -> tuple[torch.Tensor, tuple[torch.Tensor, torch.Tensor, torch.Tensor]]:
|
|
1112
1112
|
"""Paste a time region of shuffled examples into the original examples.
|
|
1113
1113
|
|
|
1114
1114
|
See [1]_ for details.
|
|
@@ -1243,12 +1243,12 @@ def label_smoothing(
|
|
|
1243
1243
|
|
|
1244
1244
|
def segmentation_reconstruction(
|
|
1245
1245
|
X: torch.Tensor,
|
|
1246
|
-
y: torch.Tensor,
|
|
1246
|
+
y: torch.Tensor | None,
|
|
1247
1247
|
n_segments: int,
|
|
1248
1248
|
data_classes: list[tuple[int, torch.Tensor]],
|
|
1249
1249
|
rand_indices: npt.ArrayLike,
|
|
1250
1250
|
idx_shuffle: npt.ArrayLike,
|
|
1251
|
-
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
1251
|
+
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
|
1252
1252
|
"""Segment and reconstruct EEG data from [1]_.
|
|
1253
1253
|
|
|
1254
1254
|
See [1]_ for details.
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/bbci.py
RENAMED
|
@@ -44,7 +44,9 @@ class BBCIDataset(object):
|
|
|
44
44
|
load_sensor_names: list[str] | None = None,
|
|
45
45
|
check_class_names: bool = False,
|
|
46
46
|
):
|
|
47
|
-
self.
|
|
47
|
+
self.filename = filename
|
|
48
|
+
self.load_sensor_names = load_sensor_names
|
|
49
|
+
self.check_class_names = check_class_names
|
|
48
50
|
|
|
49
51
|
def load(self) -> mne.io.RawArray:
|
|
50
52
|
cnt = self._load_continuous_signal()
|
|
@@ -313,7 +315,7 @@ def _check_class_names(all_class_names, event_times_in_ms, event_classes):
|
|
|
313
315
|
event_classes[left_mask] = 2
|
|
314
316
|
event_classes[rest_mask] = 3
|
|
315
317
|
event_classes[feet_mask] = 4
|
|
316
|
-
log.
|
|
318
|
+
log.warning(
|
|
317
319
|
"Swapped class names {:s}... might cause problems...".format(
|
|
318
320
|
all_class_names
|
|
319
321
|
)
|
|
@@ -656,7 +658,7 @@ def _check_class_names(all_class_names, event_times_in_ms, event_classes):
|
|
|
656
658
|
pass
|
|
657
659
|
else:
|
|
658
660
|
# remove this whole if else stuffs?
|
|
659
|
-
log.
|
|
661
|
+
log.warning("Unknown class names {:s}".format(all_class_names))
|
|
660
662
|
|
|
661
663
|
|
|
662
664
|
def load_bbci_sets_from_folder(
|
|
@@ -97,7 +97,7 @@ def _infer_convert_fmt(raw: "mne.io.BaseRaw") -> Optional[str]:
|
|
|
97
97
|
return _EXT_TO_CONVERT_FMT.get(ext)
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
def _validate_consistent_format(raws: list) -> str:
|
|
100
|
+
def _validate_consistent_format(raws: list) -> str | None:
|
|
101
101
|
"""
|
|
102
102
|
Validate that all Raw objects have the same file format.
|
|
103
103
|
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/registry.py
RENAMED
|
@@ -9,15 +9,17 @@ without direct imports (avoiding circular dependencies).
|
|
|
9
9
|
#
|
|
10
10
|
# License: BSD (3-clause)
|
|
11
11
|
|
|
12
|
-
from typing import Any, Dict, Type
|
|
12
|
+
from typing import Any, Dict, Type, TypeVar
|
|
13
13
|
|
|
14
14
|
from braindecode.util import _warn_orphaned_api
|
|
15
15
|
|
|
16
|
+
_DatasetT = TypeVar("_DatasetT", bound=type)
|
|
17
|
+
|
|
16
18
|
# Global registry mapping dataset class names to classes
|
|
17
19
|
_DATASET_REGISTRY: Dict[str, Type] = {}
|
|
18
20
|
|
|
19
21
|
|
|
20
|
-
def register_dataset(cls:
|
|
22
|
+
def register_dataset(cls: _DatasetT) -> _DatasetT:
|
|
21
23
|
"""
|
|
22
24
|
Decorator to register a dataset class in the global registry.
|
|
23
25
|
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/datasets/xy.py
RENAMED
|
@@ -23,7 +23,7 @@ def create_from_X_y(
|
|
|
23
23
|
y: ArrayLike,
|
|
24
24
|
drop_last_window: bool,
|
|
25
25
|
sfreq: float,
|
|
26
|
-
ch_names: ArrayLike = None,
|
|
26
|
+
ch_names: ArrayLike | None = None,
|
|
27
27
|
window_size_samples: int | None = None,
|
|
28
28
|
window_stride_samples: int | None = None,
|
|
29
29
|
) -> BaseConcatDataset:
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/eegneuralnet.py
RENAMED
|
@@ -54,6 +54,8 @@ def _select_array(X, indices):
|
|
|
54
54
|
class _EEGNeuralNet(NeuralNet, abc.ABC):
|
|
55
55
|
signal_args_set_ = False
|
|
56
56
|
_warned_drop_last_ = False
|
|
57
|
+
cropped: bool = False
|
|
58
|
+
_last_window_inds_: Any = None
|
|
57
59
|
|
|
58
60
|
@property
|
|
59
61
|
def log(self):
|
|
@@ -350,7 +352,7 @@ class _EEGNeuralNet(NeuralNet, abc.ABC):
|
|
|
350
352
|
X = X.get_data(units="uV")
|
|
351
353
|
return super().get_dataset(X, y)
|
|
352
354
|
|
|
353
|
-
def get_iterator(self, dataset, training=False):
|
|
355
|
+
def get_iterator(self, dataset, training=False, drop_index=True):
|
|
354
356
|
iterator = super().get_iterator(dataset, training=training)
|
|
355
357
|
# Warn (once per fit) if drop_last would discard every training batch,
|
|
356
358
|
# e.g. a training set smaller than batch_size. This silently skips
|
|
@@ -43,7 +43,9 @@ def _generic_lfilter_core_loop(
|
|
|
43
43
|
try:
|
|
44
44
|
# torchaudio's own choice: its C++ op when the extension is built, else the
|
|
45
45
|
# Python loop above. Using it keeps the scripted recursion identical.
|
|
46
|
-
from torchaudio.functional.filtering import
|
|
46
|
+
from torchaudio.functional.filtering import (
|
|
47
|
+
_lfilter_core_loop, # ty: ignore[missing-module-member]
|
|
48
|
+
)
|
|
47
49
|
except ImportError: # pragma: no cover - torchaudio versions without it
|
|
48
50
|
_lfilter_core_loop = _generic_lfilter_core_loop
|
|
49
51
|
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/base.py
RENAMED
|
@@ -14,7 +14,7 @@ import sys
|
|
|
14
14
|
import warnings
|
|
15
15
|
from collections import OrderedDict
|
|
16
16
|
from pathlib import Path, PurePosixPath, PureWindowsPath
|
|
17
|
-
from typing import Dict, Iterable, Optional,
|
|
17
|
+
from typing import TYPE_CHECKING, Dict, Iterable, Optional, Union
|
|
18
18
|
|
|
19
19
|
import numpy as np
|
|
20
20
|
import torch
|
|
@@ -154,6 +154,9 @@ _HF_INSTALL_HINT = (
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
class _BaseHubMixinStub:
|
|
157
|
+
def __init_subclass__(cls, **kwargs):
|
|
158
|
+
super().__init_subclass__()
|
|
159
|
+
|
|
157
160
|
@classmethod
|
|
158
161
|
def from_pretrained(cls, *args, **kwargs):
|
|
159
162
|
raise ImportError(f"{cls.__name__}.from_pretrained() {_HF_INSTALL_HINT}")
|
|
@@ -162,10 +165,15 @@ class _BaseHubMixinStub:
|
|
|
162
165
|
raise ImportError(f"{type(self).__name__}.push_to_hub() {_HF_INSTALL_HINT}")
|
|
163
166
|
|
|
164
167
|
|
|
165
|
-
# Define base class for hub mixin
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
# Define base class for hub mixin and docstring metaclass
|
|
169
|
+
if TYPE_CHECKING:
|
|
170
|
+
_BaseHubMixin = _BaseHubMixinStub
|
|
171
|
+
_DocstringMetaBase = type
|
|
172
|
+
else:
|
|
173
|
+
_BaseHubMixin = (
|
|
174
|
+
huggingface_hub.PyTorchModelHubMixin if HAS_HF_HUB else _BaseHubMixinStub
|
|
175
|
+
)
|
|
176
|
+
_DocstringMetaBase = NumpyDocstringInheritanceInitMeta
|
|
169
177
|
|
|
170
178
|
|
|
171
179
|
def deprecated_args(obj, *old_new_args):
|
|
@@ -185,7 +193,7 @@ def deprecated_args(obj, *old_new_args):
|
|
|
185
193
|
return out_args
|
|
186
194
|
|
|
187
195
|
|
|
188
|
-
class _BraindecodeDocstringMeta(
|
|
196
|
+
class _BraindecodeDocstringMeta(_DocstringMetaBase):
|
|
189
197
|
"""Defer ``__init__`` wrapping until after docstring inheritance.
|
|
190
198
|
|
|
191
199
|
``NumpyDocstringInheritanceInitMeta`` uses ``inspect.unwrap()``
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/config.py
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
from collections.abc import Callable
|
|
3
3
|
from inspect import signature
|
|
4
4
|
from types import UnionType
|
|
5
|
-
from typing import Annotated, Any, Literal, Union, get_args, get_origin
|
|
5
|
+
from typing import TYPE_CHECKING, Annotated, Any, Literal, Union, get_args, get_origin
|
|
6
6
|
|
|
7
7
|
import numpy as np
|
|
8
8
|
import pydantic
|
|
@@ -19,7 +19,7 @@ from braindecode.models.util import (
|
|
|
19
19
|
try:
|
|
20
20
|
from numpydantic import NDArray, Shape
|
|
21
21
|
|
|
22
|
-
_loc_type = NDArray[Shape["12"], np.float64]
|
|
22
|
+
_loc_type = NDArray[Shape["12"], np.float64] # ty: ignore[invalid-type-form]
|
|
23
23
|
except ImportError:
|
|
24
24
|
# Without numpydantic, loc (12,) is a plain ndarray written to JSON as floats
|
|
25
25
|
_loc_type = Annotated[
|
|
@@ -209,7 +209,7 @@ def make_model_config(
|
|
|
209
209
|
name = model_class.__name__
|
|
210
210
|
model_config = pydantic.create_model(
|
|
211
211
|
f"{name}Config",
|
|
212
|
-
model_name_=(Literal[name], name),
|
|
212
|
+
model_name_=(Literal[name], name), # ty: ignore[invalid-type-form]
|
|
213
213
|
__config__=pydantic.ConfigDict(
|
|
214
214
|
arbitrary_types_allowed=True, extra=extra, validate_default=True
|
|
215
215
|
),
|
|
@@ -234,13 +234,17 @@ for model_name, req, _ in models_mandatory_parameters:
|
|
|
234
234
|
__all__.append(model_cfg.__name__)
|
|
235
235
|
models_configs.append(model_cfg)
|
|
236
236
|
|
|
237
|
-
BraindecodeModelConfig = Annotated[
|
|
238
|
-
Union[tuple(models_configs)],
|
|
237
|
+
BraindecodeModelConfig = Annotated[
|
|
238
|
+
Union[tuple(models_configs)], # ty: ignore[invalid-type-form]
|
|
239
239
|
pydantic.Field(
|
|
240
240
|
discriminator="model_name_", description="Braindecode model configuration"
|
|
241
241
|
),
|
|
242
242
|
]
|
|
243
243
|
|
|
244
|
+
if TYPE_CHECKING:
|
|
245
|
+
|
|
246
|
+
def __getattr__(name: str) -> type[BaseBraindecodeModelConfig]: ...
|
|
247
|
+
|
|
244
248
|
# # Example usage:
|
|
245
249
|
#
|
|
246
250
|
# class DummyConfigWithModel(pydantic.BaseModel):
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/models/tidnet.py
RENAMED
|
@@ -307,11 +307,15 @@ class _TemporalFilter(nn.Module):
|
|
|
307
307
|
self.residual_style = str(residual)
|
|
308
308
|
net = list()
|
|
309
309
|
|
|
310
|
+
is_dense = self.residual_style.lower() == "dense"
|
|
310
311
|
for i in range(depth):
|
|
311
312
|
dil = depth - i
|
|
313
|
+
in_ch = (
|
|
314
|
+
n_chans + i * filters if is_dense else (n_chans if i == 0 else filters)
|
|
315
|
+
)
|
|
312
316
|
conv = weight_norm(
|
|
313
317
|
_TemporalConv(
|
|
314
|
-
|
|
318
|
+
in_ch,
|
|
315
319
|
filters,
|
|
316
320
|
kernel_size=(1, temp_len),
|
|
317
321
|
dilation=dil,
|
|
@@ -321,11 +325,9 @@ class _TemporalFilter(nn.Module):
|
|
|
321
325
|
net.append(
|
|
322
326
|
nn.Sequential(conv, activation(), nn.Dropout2d(p=float(drop_prob)))
|
|
323
327
|
)
|
|
328
|
+
self.net = nn.Sequential(*net)
|
|
324
329
|
if self.residual_style.lower() == "netwise":
|
|
325
|
-
self.net = nn.Sequential(*net)
|
|
326
330
|
self.residual = nn.Conv2d(n_chans, filters, (1, 1))
|
|
327
|
-
elif residual.lower() == "dense":
|
|
328
|
-
self.net = net
|
|
329
331
|
|
|
330
332
|
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
|
331
333
|
style = self.residual_style.lower()
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715}/braindecode/modules/stats.py
RENAMED
|
@@ -73,18 +73,18 @@ def _power_fn(x: torch.Tensor, dim: int, keepdim: bool) -> torch.Tensor:
|
|
|
73
73
|
return torch.mean(x**2, dim=dim, keepdim=keepdim)
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
MeanLayer
|
|
77
|
-
MaxLayer
|
|
78
|
-
VarLayer
|
|
79
|
-
StdLayer
|
|
80
|
-
LogVarLayer
|
|
76
|
+
MeanLayer = partial(StatLayer, torch.mean)
|
|
77
|
+
MaxLayer = partial(StatLayer, _max_fn)
|
|
78
|
+
VarLayer = partial(StatLayer, torch.var)
|
|
79
|
+
StdLayer = partial(StatLayer, torch.std)
|
|
80
|
+
LogVarLayer = partial(
|
|
81
81
|
StatLayer,
|
|
82
82
|
torch.var,
|
|
83
83
|
clamp_range=(1e-6, 1e6),
|
|
84
84
|
apply_log=True,
|
|
85
85
|
)
|
|
86
86
|
|
|
87
|
-
LogPowerLayer
|
|
87
|
+
LogPowerLayer = partial(
|
|
88
88
|
StatLayer,
|
|
89
89
|
_power_fn,
|
|
90
90
|
clamp_range=(1e-4, 1e4),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# License: BSD-3
|
|
7
7
|
import inspect
|
|
8
|
+
from typing import TYPE_CHECKING, Any
|
|
8
9
|
|
|
9
10
|
import mne.channels
|
|
10
11
|
import mne.io
|
|
@@ -13,6 +14,14 @@ import mne.preprocessing
|
|
|
13
14
|
from braindecode.preprocessing.preprocess import Preprocessor
|
|
14
15
|
from braindecode.util import _clean_docstring_sections
|
|
15
16
|
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
|
|
19
|
+
class _MNEPreprocessor(Preprocessor):
|
|
20
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
|
21
|
+
|
|
22
|
+
def __getattr__(name: str) -> type[_MNEPreprocessor]: ...
|
|
23
|
+
|
|
24
|
+
|
|
16
25
|
# Standalone MNE functions that are safe to wrap as a *callable* preprocessor.
|
|
17
26
|
#
|
|
18
27
|
# When ``fn`` is a callable and ``apply_on_array=False``, ``Preprocessor`` calls
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.0.dev4294968715"
|
{braindecode-2.1.0.dev4294968713 → braindecode-2.1.0.dev4294968715/braindecode.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: braindecode
|
|
3
|
-
Version: 2.1.0.
|
|
3
|
+
Version: 2.1.0.dev4294968715
|
|
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>
|
|
@@ -55,7 +55,7 @@ Requires-Dist: pytest-xdist>=3.8.0; extra == "tests"
|
|
|
55
55
|
Requires-Dist: pytest-timeout; extra == "tests"
|
|
56
56
|
Requires-Dist: codecov; extra == "tests"
|
|
57
57
|
Requires-Dist: pytest_cases; extra == "tests"
|
|
58
|
-
Requires-Dist:
|
|
58
|
+
Requires-Dist: ty>=0.0.107; extra == "tests"
|
|
59
59
|
Requires-Dist: ipython; extra == "tests"
|
|
60
60
|
Requires-Dist: transformers>=4.57.0; extra == "tests"
|
|
61
61
|
Requires-Dist: bids_validator; extra == "tests"
|
|
@@ -52,9 +52,11 @@ data-free example executes only once:
|
|
|
52
52
|
Deployment scope
|
|
53
53
|
******************
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
Master pushes deploy ``dev/`` with
|
|
56
|
+
``BRAINDECODE_DOCS_URL=https://braindecode.org/dev/``, while ``v*`` release tags build
|
|
57
|
+
from the tagged commit with ``BRAINDECODE_DOCS_URL=https://braindecode.org/stable/``,
|
|
58
|
+
publish ``stable/`` and ``X.Y/``, and sync the origin-root ``llms.txt`` from that stable
|
|
59
|
+
build. Because a development checkout can contain a release-looking package version, the
|
|
60
|
+
URL scope and source commit remain essential provenance; never copy ``dev/`` Markdown
|
|
61
|
+
into ``stable/`` documentation. Each exported HTML page also advertises its Markdown
|
|
62
|
+
sibling with ``<link rel="alternate" type="text/markdown">``.
|
|
@@ -119,6 +119,7 @@ extensions = [
|
|
|
119
119
|
"numpydoc",
|
|
120
120
|
"gh_substitutions",
|
|
121
121
|
"zoo_data_gen",
|
|
122
|
+
"model_seo",
|
|
122
123
|
]
|
|
123
124
|
|
|
124
125
|
# sphinx_sitemap spawns multiprocessing.Manager().Queue(), which deadlocks
|
|
@@ -246,8 +247,8 @@ td = datetime.now(tz=timezone.utc)
|
|
|
246
247
|
# (Sphinx looks at variable changes and rewrites all files if some change)
|
|
247
248
|
copyright = (
|
|
248
249
|
f'2012–{td.year}, Braindecode Developers. Last updated <time datetime="{td.isoformat()}" class="localized">{td.strftime("%Y-%m-%d %H:%M %Z")}</time>\n' # noqa: E501
|
|
249
|
-
'<script
|
|
250
|
-
)
|
|
250
|
+
'<script>document.addEventListener("DOMContentLoaded", function () { document.querySelectorAll("time.localized").forEach(function (el) { var dt = el.getAttribute("datetime"); if (dt) { el.textContent = new Date(dt).toLocaleString([], {dateStyle: "medium", timeStyle: "long"}); } }); });</script>' # noqa: E501
|
|
251
|
+
)
|
|
251
252
|
if os.getenv("BRAINDECODE_FULL_DATE", "false").lower() != "true":
|
|
252
253
|
copyright = f"2018–{td.year}, Braindecode Developers."
|
|
253
254
|
|
|
@@ -274,7 +275,7 @@ version = ".".join(release.split(".")[:2])
|
|
|
274
275
|
# List of patterns, relative to source directory, that match files and
|
|
275
276
|
# directories to ignore when looking for source files.
|
|
276
277
|
# This patterns also effect to html_static_path and html_extra_path
|
|
277
|
-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
278
|
+
exclude_patterns = ["_build", "_templates", "_root", "Thumbs.db", ".DS_Store"]
|
|
278
279
|
|
|
279
280
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
280
281
|
pygments_style = "sphinx"
|
|
@@ -388,22 +389,17 @@ html_theme_options = {
|
|
|
388
389
|
],
|
|
389
390
|
},
|
|
390
391
|
"footer_start": ["copyright"],
|
|
392
|
+
"show_version_warning_banner": True,
|
|
391
393
|
# 'pygment_light_style': 'default',
|
|
392
394
|
# Analytics intentionally NOT configured here — the project uses GTM
|
|
393
395
|
# (GTM-NWDKLVNR) injected from _templates/layout.html as the single
|
|
394
396
|
# entry point. Adding theme analytics on top would double-count.
|
|
395
397
|
}
|
|
396
398
|
|
|
397
|
-
# The name of an image file (relative to this directory) to place at the top
|
|
398
|
-
# of the sidebar.
|
|
399
|
-
html_logo = "_static/braindecode_symbol.png"
|
|
400
|
-
|
|
401
399
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
402
400
|
# relative to this directory. They are copied after the builtin static files,
|
|
403
401
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
404
402
|
html_static_path = ["_static"]
|
|
405
|
-
# Files copied verbatim into the build root (robots.txt, etc.)
|
|
406
|
-
html_extra_path = ["_extra"]
|
|
407
403
|
html_css_files = [
|
|
408
404
|
"style.css",
|
|
409
405
|
]
|
|
@@ -414,7 +410,7 @@ html_css_files = [
|
|
|
414
410
|
# Google-Fonts request to every doc page for no benefit.
|
|
415
411
|
|
|
416
412
|
# Favicon for the site
|
|
417
|
-
html_favicon = "_static/
|
|
413
|
+
html_favicon = "_static/braindecode_small.svg"
|
|
418
414
|
|
|
419
415
|
# If true, links to the reST sources are added to the pages.
|
|
420
416
|
html_show_sourcelink = False
|
|
@@ -438,7 +434,7 @@ xxl = "20"
|
|
|
438
434
|
|
|
439
435
|
html_context = {
|
|
440
436
|
"build_dev_html": bool(int(os.environ.get("BUILD_DEV_HTML", False))),
|
|
441
|
-
"default_mode": "
|
|
437
|
+
"default_mode": "auto",
|
|
442
438
|
"pygment_light_style": "tango",
|
|
443
439
|
"pygment_dark_style": "native",
|
|
444
440
|
"doc_version": switcher_version_match,
|
|
@@ -521,28 +517,46 @@ latex_documents = [
|
|
|
521
517
|
),
|
|
522
518
|
]
|
|
523
519
|
# Master/dev builds publish under /dev/ on GitHub Pages (see
|
|
524
|
-
# .github/workflows/docs.yml `destination_dir: dev`)
|
|
525
|
-
#
|
|
526
|
-
#
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
520
|
+
# .github/workflows/docs.yml `destination_dir: dev`), while release tags
|
|
521
|
+
# publish under /stable/ and /X.Y/. Canonical URLs and sitemap entries
|
|
522
|
+
# always point to /stable/ so search engines consolidate link equity there.
|
|
523
|
+
_deploy_url = (
|
|
524
|
+
os.environ.get("BRAINDECODE_DOCS_URL") or "https://braindecode.org/dev/"
|
|
525
|
+
).rstrip("/") + "/"
|
|
526
|
+
_canonical_base = "https://braindecode.org/stable/"
|
|
527
|
+
html_baseurl = _canonical_base
|
|
528
|
+
html_context["docs_url"] = _deploy_url # JSON-LD in _templates/layout.html
|
|
529
|
+
html_context["canonical_base_url"] = _canonical_base
|
|
530
|
+
html_context["is_stable_build"] = _deploy_url == _canonical_base
|
|
532
531
|
sitemap_filename = "sitemap.xml"
|
|
533
532
|
# Flat URLs (no /en/{version}/) — same pattern as MOABB.
|
|
534
533
|
sitemap_url_scheme = "{link}"
|
|
534
|
+
sitemap_excludes = [
|
|
535
|
+
"search.html",
|
|
536
|
+
"genindex.html",
|
|
537
|
+
"py-modindex.html",
|
|
538
|
+
"sg_execution_times.html",
|
|
539
|
+
"*/sg_execution_times.html",
|
|
540
|
+
]
|
|
535
541
|
|
|
536
542
|
# --- Open Graph / Twitter Card / meta description ---
|
|
537
|
-
ogp_site_url =
|
|
543
|
+
ogp_site_url = _deploy_url
|
|
544
|
+
ogp_canonical_url = _canonical_base
|
|
538
545
|
ogp_site_name = "Braindecode"
|
|
539
|
-
ogp_image = f"{
|
|
546
|
+
ogp_image = f"{_deploy_url}_static/braindecode.png"
|
|
540
547
|
ogp_image_alt = (
|
|
541
|
-
"Braindecode —
|
|
548
|
+
"Braindecode — Open-source PyTorch library for decoding raw EEG, MEG, "
|
|
549
|
+
"iEEG, fNIRS, and sEMG"
|
|
542
550
|
)
|
|
543
551
|
ogp_description_length = 200
|
|
544
552
|
ogp_enable_meta_description = True
|
|
545
553
|
ogp_type = "website"
|
|
554
|
+
ogp_social_cards = {
|
|
555
|
+
"enable": True,
|
|
556
|
+
"image": "_static/braindecode.png",
|
|
557
|
+
"line_color": "#3a6c97",
|
|
558
|
+
"site_url": "braindecode.org",
|
|
559
|
+
}
|
|
546
560
|
ogp_custom_meta_tags = [
|
|
547
561
|
'<meta name="twitter:card" content="summary_large_image" />',
|
|
548
562
|
'<meta name="twitter:site" content="@braindecode" />',
|
|
@@ -266,6 +266,9 @@ Bug fixes
|
|
|
266
266
|
- Speed up documentation builds (``make html-noplot`` no longer hangs with ``-j auto`` on macOS),
|
|
267
267
|
fix the duplicate ``Parameters`` section in :class:`braindecode.datasets.BNCI2014_001`, and
|
|
268
268
|
cache unchanged Sphinx-Gallery outputs in CI (:gh:`1752` by `Bruno Aristimunha`_).
|
|
269
|
+
- Fix ``SincShallowNet(activation=None)``, dense ``TIDNet`` layer registration,
|
|
270
|
+
``_EEGNeuralNet.get_iterator(drop_index=...)``, ``ft_surrogate`` tensor dtypes,
|
|
271
|
+
``SleepPhysionetChallenge2018`` ``urllib.request``, and ``BBCIDataset`` init (:gh:`1751` by `Bruno Aristimunha`_).
|
|
269
272
|
- Documentation: list all pre-trained models under ``braindecode[hub]`` in the API
|
|
270
273
|
reference, deduplicate the DataTables assets and apply an accessible light/dark
|
|
271
274
|
category palette on the models summary table, drop the render-blocking Google Fonts
|
|
@@ -628,6 +631,9 @@ Bug fixes
|
|
|
628
631
|
Code health
|
|
629
632
|
============
|
|
630
633
|
|
|
634
|
+
- Replace ``mypy`` and ``isort`` with Astral ``ty`` and consolidated ``ruff`` hooks,
|
|
635
|
+
enable ``sys.monitoring`` coverage, drop dead ``setup.cfg`` sections, and preserve
|
|
636
|
+
class types through ``@register_dataset`` and :class:`~braindecode.models.EEGModuleMixin` (:gh:`1751` by `Bruno Aristimunha`_).
|
|
631
637
|
- The test suite peaks lower: smaller inputs where no assertion depends on size,
|
|
632
638
|
shared read-only data, freed TorchScript, compile and reference-cycle memory
|
|
633
639
|
(:gh:`1713` by `Bruno Aristimunha`_).
|
|
@@ -724,6 +730,13 @@ Code health
|
|
|
724
730
|
- The numpydoc header test now covers every registered model, not nine. The
|
|
725
731
|
parameter headers of 13 models read ``name: type`` and are now ``name : type``,
|
|
726
732
|
so numpydoc parses the name (:gh:`1728` by `@ptlnextdoor <https://github.com/ptlnextdoor>`_).
|
|
733
|
+
- Every documentation build emits ``https://braindecode.org/stable/`` canonical and
|
|
734
|
+
sitemap URLs (with ``noindex, follow`` on non-stable builds), raster PNG OpenGraph
|
|
735
|
+
cards, and ``model_seo`` descriptions, ``.md`` alternate links, and ``BreadcrumbList``,
|
|
736
|
+
``SoftwareSourceCode``, and ``TechArticle`` JSON-LD; ``v*`` tag builds deploy
|
|
737
|
+
``/stable/``, ``/X.Y/``, and origin-root ``robots.txt``, ``sitemap.xml``, ``index.html``,
|
|
738
|
+
and ``llms.txt`` to ``braindecode.github.io`` and submit changed URLs to IndexNow
|
|
739
|
+
(:gh:`1747` by `Bruno Aristimunha`_).
|
|
727
740
|
- The cropped inference page is now the :ref:`cropped-inference` section of the cropped
|
|
728
741
|
decoding tutorial and the docstrings of its functions; :ref:`channel-strategies` moves
|
|
729
742
|
to the Models section, with tables (:gh:`1745` by `Bruno Aristimunha`_).
|