Braindecode 1.2.0__tar.gz → 1.2.0.dev168908090__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.
Files changed (400) hide show
  1. {braindecode-1.2.0/braindecode.egg-info → braindecode-1.2.0.dev168908090}/PKG-INFO +2 -7
  2. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/__init__.py +8 -6
  3. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/atcnet.py +1 -1
  4. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/attentionbasenet.py +26 -151
  5. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/ctnet.py +1 -1
  6. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/deep4.py +2 -6
  7. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/deepsleepnet.py +5 -118
  8. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegconformer.py +12 -15
  9. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eeginception_erp.py +7 -76
  10. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eeginception_mi.py +0 -2
  11. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegnet.py +189 -25
  12. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegnex.py +6 -113
  13. braindecode-1.2.0.dev168908090/braindecode/models/eegresnet.py +362 -0
  14. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegsimpleconv.py +0 -2
  15. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegtcnet.py +1 -1
  16. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/sccnet.py +8 -79
  17. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/shallow_fbcsp.py +0 -2
  18. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/sleep_stager_blanco_2020.py +0 -2
  19. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/sleep_stager_chambon_2018.py +0 -2
  20. braindecode-1.2.0/braindecode/models/attn_sleep.py → braindecode-1.2.0.dev168908090/braindecode/models/sleep_stager_eldele_2021.py +2 -12
  21. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/sparcnet.py +0 -2
  22. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/summary.csv +41 -39
  23. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/tidnet.py +0 -2
  24. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/tsinception.py +3 -15
  25. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/usleep.py +9 -103
  26. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/util.py +5 -5
  27. braindecode-1.2.0.dev168908090/braindecode/version.py +1 -0
  28. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090/braindecode.egg-info}/PKG-INFO +2 -7
  29. braindecode-1.2.0.dev168908090/braindecode.egg-info/SOURCES.txt +120 -0
  30. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode.egg-info/requires.txt +0 -5
  31. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/api.rst +11 -16
  32. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/conf.py +17 -39
  33. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/index.rst +3 -3
  34. braindecode-1.2.0.dev168908090/docs/models_summary.rst +134 -0
  35. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/sg_execution_times.rst +63 -66
  36. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/whats_new.rst +2 -12
  37. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/pyproject.toml +5 -11
  38. braindecode-1.2.0/braindecode/datasets/experimental.py +0 -218
  39. braindecode-1.2.0/braindecode/version.py +0 -1
  40. braindecode-1.2.0/braindecode.egg-info/SOURCES.txt +0 -395
  41. braindecode-1.2.0/docs/_build/html/_downloads/090305d06248840b75133975e5121f41/plot_sleep_staging_chambon2018.ipynb +0 -291
  42. braindecode-1.2.0/docs/_build/html/_downloads/0f2bf063e08b7d05b80e0004fcbbb6f9/benchmark_lazy_eager_loading.ipynb +0 -183
  43. braindecode-1.2.0/docs/_build/html/_downloads/1c6590d134fa0befda654e89aa55b2ac/plot_benchmark_preprocessing.ipynb +0 -104
  44. braindecode-1.2.0/docs/_build/html/_downloads/1d879df548fa18be8c23d9ca0dc008d4/plot_data_augmentation.ipynb +0 -259
  45. braindecode-1.2.0/docs/_build/html/_downloads/2466f8ec5c733d0bd65e187b45d875cc/plot_data_augmentation_search.ipynb +0 -302
  46. braindecode-1.2.0/docs/_build/html/_downloads/263464a28477cf8decb861ae6e2e9be7/plot_how_train_test_and_tune.ipynb +0 -375
  47. braindecode-1.2.0/docs/_build/html/_downloads/3862cafd7f0d815e434319ffe525afc8/plot_bcic_iv_2a_moabb_cropped.ipynb +0 -226
  48. braindecode-1.2.0/docs/_build/html/_downloads/408ca4ffd0ea1f76faa9ef602734ac94/plot_tuh_eeg_corpus.ipynb +0 -187
  49. braindecode-1.2.0/docs/_build/html/_downloads/5030717acb00990b394b83314b0797d9/plot_bids_dataset_example.ipynb +0 -97
  50. braindecode-1.2.0/docs/_build/html/_downloads/75a73c7d94f3a671fd3dec28f4031ead/plot_regression.ipynb +0 -212
  51. braindecode-1.2.0/docs/_build/html/_downloads/84fbcd59a346e5e56758285122dc69e2/plot_sleep_staging_eldele2021.ipynb +0 -291
  52. braindecode-1.2.0/docs/_build/html/_downloads/8616a7f968141825e56ab3e3d59be449/plot_tuh_discrete_multitarget.ipynb +0 -169
  53. braindecode-1.2.0/docs/_build/html/_downloads/8b5ba06718764b959e8dea1dd0bb97df/plot_sleep_staging_usleep.ipynb +0 -255
  54. braindecode-1.2.0/docs/_build/html/_downloads/91651c9d4fde110b4a53f5775a91acc5/plot_mne_dataset_example.ipynb +0 -104
  55. braindecode-1.2.0/docs/_build/html/_downloads/93fdea8cbadaf0e3afa2eb2be3ebc483/bcic_iv_4_ecog_trial.ipynb +0 -376
  56. braindecode-1.2.0/docs/_build/html/_downloads/9a4447462c3b255ba7e5ca212bbadd52/plot_bcic_iv_2a_moabb_trial.ipynb +0 -253
  57. braindecode-1.2.0/docs/_build/html/_downloads/a2f12129facb042643a99d4b9de1886d/bcic_iv_4_ecog_cropped.ipynb +0 -345
  58. braindecode-1.2.0/docs/_build/html/_downloads/a39e4245738e55e0eb7084c545ed05bc/plot_hyperparameter_tuning_with_scikit-learn.ipynb +0 -257
  59. braindecode-1.2.0/docs/_build/html/_downloads/a6249715d3c30cb41c4af85938cca008/plot_moabb_dataset_example.ipynb +0 -140
  60. braindecode-1.2.0/docs/_build/html/_downloads/a86d0c5f3a882a069df1683a708d3e25/plot_train_in_pure_pytorch_and_pytorch_lightning.ipynb +0 -250
  61. braindecode-1.2.0/docs/_build/html/_downloads/aa8426d97090e7b3062c4e4732c3214a/plot_relative_positioning.ipynb +0 -266
  62. braindecode-1.2.0/docs/_build/html/_downloads/b9d19304ecd233ea7a79d4365316ea49/plot_load_save_datasets.ipynb +0 -176
  63. braindecode-1.2.0/docs/_build/html/_downloads/cb62940d13f700ed2b9e813705e9d437/plot_moabb_benchmark.ipynb +0 -122
  64. braindecode-1.2.0/docs/_build/html/_downloads/f3c89d39e947a121c7920b4d415413a2/plot_split_dataset.ipynb +0 -180
  65. braindecode-1.2.0/docs/_build/html/_downloads/f7b38cac92c078838442753121efc297/plot_custom_dataset_example.ipynb +0 -140
  66. braindecode-1.2.0/docs/_build/html/_downloads/fff46913db5173d3ae22c1113acffb45/plot_basic_training_epochs.ipynb +0 -219
  67. braindecode-1.2.0/docs/auto_examples/advanced_training/bcic_iv_4_ecog_cropped.ipynb +0 -345
  68. braindecode-1.2.0/docs/auto_examples/advanced_training/bcic_iv_4_ecog_cropped.rst +0 -626
  69. braindecode-1.2.0/docs/auto_examples/advanced_training/index.rst +0 -119
  70. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_data_augmentation.ipynb +0 -259
  71. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_data_augmentation.rst +0 -419
  72. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_data_augmentation_search.ipynb +0 -302
  73. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_data_augmentation_search.rst +0 -523
  74. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_moabb_benchmark.ipynb +0 -122
  75. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_moabb_benchmark.rst +0 -231
  76. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_relative_positioning.ipynb +0 -266
  77. braindecode-1.2.0/docs/auto_examples/advanced_training/plot_relative_positioning.rst +0 -690
  78. braindecode-1.2.0/docs/auto_examples/advanced_training/sg_execution_times.rst +0 -49
  79. braindecode-1.2.0/docs/auto_examples/applied_examples/bcic_iv_4_ecog_trial.ipynb +0 -376
  80. braindecode-1.2.0/docs/auto_examples/applied_examples/bcic_iv_4_ecog_trial.rst +0 -581
  81. braindecode-1.2.0/docs/auto_examples/applied_examples/index.rst +0 -119
  82. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_sleep_staging_chambon2018.ipynb +0 -291
  83. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_sleep_staging_chambon2018.rst +0 -521
  84. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.ipynb +0 -291
  85. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.rst +0 -519
  86. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.ipynb +0 -255
  87. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.rst +0 -468
  88. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.ipynb +0 -187
  89. braindecode-1.2.0/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.rst +0 -433
  90. braindecode-1.2.0/docs/auto_examples/applied_examples/sg_execution_times.rst +0 -49
  91. braindecode-1.2.0/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.ipynb +0 -183
  92. braindecode-1.2.0/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.rst +0 -504
  93. braindecode-1.2.0/docs/auto_examples/datasets_io/index.rst +0 -191
  94. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_benchmark_preprocessing.ipynb +0 -104
  95. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_benchmark_preprocessing.rst +0 -257
  96. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_bids_dataset_example.ipynb +0 -97
  97. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_bids_dataset_example.rst +0 -110
  98. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_custom_dataset_example.ipynb +0 -140
  99. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_custom_dataset_example.rst +0 -163
  100. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_load_save_datasets.ipynb +0 -176
  101. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_load_save_datasets.rst +0 -202
  102. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_mne_dataset_example.ipynb +0 -104
  103. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_mne_dataset_example.rst +0 -135
  104. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_moabb_dataset_example.ipynb +0 -140
  105. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_moabb_dataset_example.rst +0 -144
  106. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_split_dataset.ipynb +0 -180
  107. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_split_dataset.rst +0 -223
  108. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_tuh_discrete_multitarget.ipynb +0 -169
  109. braindecode-1.2.0/docs/auto_examples/datasets_io/plot_tuh_discrete_multitarget.rst +0 -232
  110. braindecode-1.2.0/docs/auto_examples/datasets_io/sg_execution_times.rst +0 -61
  111. braindecode-1.2.0/docs/auto_examples/index.rst +0 -575
  112. braindecode-1.2.0/docs/auto_examples/model_building/index.rst +0 -155
  113. braindecode-1.2.0/docs/auto_examples/model_building/plot_basic_training_epochs.ipynb +0 -219
  114. braindecode-1.2.0/docs/auto_examples/model_building/plot_basic_training_epochs.rst +0 -305
  115. braindecode-1.2.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.ipynb +0 -226
  116. braindecode-1.2.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.rst +0 -513
  117. braindecode-1.2.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_trial.ipynb +0 -253
  118. braindecode-1.2.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_trial.rst +0 -469
  119. braindecode-1.2.0/docs/auto_examples/model_building/plot_how_train_test_and_tune.ipynb +0 -375
  120. braindecode-1.2.0/docs/auto_examples/model_building/plot_how_train_test_and_tune.rst +0 -854
  121. braindecode-1.2.0/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.ipynb +0 -257
  122. braindecode-1.2.0/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.rst +0 -498
  123. braindecode-1.2.0/docs/auto_examples/model_building/plot_regression.ipynb +0 -212
  124. braindecode-1.2.0/docs/auto_examples/model_building/plot_regression.rst +0 -391
  125. braindecode-1.2.0/docs/auto_examples/model_building/plot_train_in_pure_pytorch_and_pytorch_lightning.ipynb +0 -250
  126. braindecode-1.2.0/docs/auto_examples/model_building/plot_train_in_pure_pytorch_and_pytorch_lightning.rst +0 -536
  127. braindecode-1.2.0/docs/auto_examples/model_building/sg_execution_times.rst +0 -55
  128. braindecode-1.2.0/docs/auto_examples/sg_execution_times.rst +0 -37
  129. braindecode-1.2.0/docs/generated/activation/braindecode.modules.LogActivation.rst +0 -130
  130. braindecode-1.2.0/docs/generated/activation/braindecode.modules.SafeLog.rst +0 -135
  131. braindecode-1.2.0/docs/generated/attention/braindecode.modules.CAT.rst +0 -130
  132. braindecode-1.2.0/docs/generated/attention/braindecode.modules.CATLite.rst +0 -130
  133. braindecode-1.2.0/docs/generated/attention/braindecode.modules.CBAM.rst +0 -130
  134. braindecode-1.2.0/docs/generated/attention/braindecode.modules.ECA.rst +0 -130
  135. braindecode-1.2.0/docs/generated/attention/braindecode.modules.EncNet.rst +0 -130
  136. braindecode-1.2.0/docs/generated/attention/braindecode.modules.FCA.rst +0 -137
  137. braindecode-1.2.0/docs/generated/attention/braindecode.modules.GCT.rst +0 -130
  138. braindecode-1.2.0/docs/generated/attention/braindecode.modules.GSoP.rst +0 -130
  139. braindecode-1.2.0/docs/generated/attention/braindecode.modules.GatherExcite.rst +0 -130
  140. braindecode-1.2.0/docs/generated/attention/braindecode.modules.MultiHeadAttention.rst +0 -130
  141. braindecode-1.2.0/docs/generated/attention/braindecode.modules.SRM.rst +0 -130
  142. braindecode-1.2.0/docs/generated/attention/braindecode.modules.SqueezeAndExcitation.rst +0 -130
  143. braindecode-1.2.0/docs/generated/blocks/braindecode.modules.FeedForwardBlock.rst +0 -127
  144. braindecode-1.2.0/docs/generated/blocks/braindecode.modules.InceptionBlock.rst +0 -130
  145. braindecode-1.2.0/docs/generated/blocks/braindecode.modules.MLP.rst +0 -127
  146. braindecode-1.2.0/docs/generated/braindecode.augmentation.AugmentedDataLoader.rst +0 -21
  147. braindecode-1.2.0/docs/generated/braindecode.augmentation.BandstopFilter.rst +0 -139
  148. braindecode-1.2.0/docs/generated/braindecode.augmentation.ChannelsDropout.rst +0 -139
  149. braindecode-1.2.0/docs/generated/braindecode.augmentation.ChannelsShuffle.rst +0 -139
  150. braindecode-1.2.0/docs/generated/braindecode.augmentation.ChannelsSymmetry.rst +0 -139
  151. braindecode-1.2.0/docs/generated/braindecode.augmentation.Compose.rst +0 -132
  152. braindecode-1.2.0/docs/generated/braindecode.augmentation.FTSurrogate.rst +0 -139
  153. braindecode-1.2.0/docs/generated/braindecode.augmentation.FrequencyShift.rst +0 -139
  154. braindecode-1.2.0/docs/generated/braindecode.augmentation.GaussianNoise.rst +0 -139
  155. braindecode-1.2.0/docs/generated/braindecode.augmentation.IdentityTransform.rst +0 -134
  156. braindecode-1.2.0/docs/generated/braindecode.augmentation.MaskEncoding.rst +0 -139
  157. braindecode-1.2.0/docs/generated/braindecode.augmentation.Mixup.rst +0 -139
  158. braindecode-1.2.0/docs/generated/braindecode.augmentation.SegmentationReconstruction.rst +0 -139
  159. braindecode-1.2.0/docs/generated/braindecode.augmentation.SensorsRotation.rst +0 -139
  160. braindecode-1.2.0/docs/generated/braindecode.augmentation.SensorsXRotation.rst +0 -123
  161. braindecode-1.2.0/docs/generated/braindecode.augmentation.SensorsYRotation.rst +0 -123
  162. braindecode-1.2.0/docs/generated/braindecode.augmentation.SensorsZRotation.rst +0 -123
  163. braindecode-1.2.0/docs/generated/braindecode.augmentation.SignFlip.rst +0 -134
  164. braindecode-1.2.0/docs/generated/braindecode.augmentation.SmoothTimeMask.rst +0 -139
  165. braindecode-1.2.0/docs/generated/braindecode.augmentation.TimeReverse.rst +0 -134
  166. braindecode-1.2.0/docs/generated/braindecode.augmentation.Transform.rst +0 -137
  167. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.bandstop_filter.rst +0 -12
  168. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.channels_dropout.rst +0 -12
  169. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.channels_permute.rst +0 -12
  170. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.channels_shuffle.rst +0 -12
  171. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.frequency_shift.rst +0 -12
  172. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.ft_surrogate.rst +0 -12
  173. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.gaussian_noise.rst +0 -12
  174. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.identity.rst +0 -12
  175. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.mask_encoding.rst +0 -12
  176. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.mixup.rst +0 -12
  177. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.segmentation_reconstruction.rst +0 -12
  178. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.sensors_rotation.rst +0 -12
  179. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.sign_flip.rst +0 -12
  180. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.smooth_time_mask.rst +0 -12
  181. braindecode-1.2.0/docs/generated/braindecode.augmentation.functional.time_reverse.rst +0 -12
  182. braindecode-1.2.0/docs/generated/braindecode.classifier.EEGClassifier.rst +0 -166
  183. braindecode-1.2.0/docs/generated/braindecode.datasets.BCICompetitionIVDataset4.rst +0 -42
  184. braindecode-1.2.0/docs/generated/braindecode.datasets.BIDSDataset.rst +0 -29
  185. braindecode-1.2.0/docs/generated/braindecode.datasets.BIDSEpochsDataset.rst +0 -29
  186. braindecode-1.2.0/docs/generated/braindecode.datasets.BNCI2014001.rst +0 -29
  187. braindecode-1.2.0/docs/generated/braindecode.datasets.BaseConcatDataset.rst +0 -55
  188. braindecode-1.2.0/docs/generated/braindecode.datasets.BaseDataset.rst +0 -32
  189. braindecode-1.2.0/docs/generated/braindecode.datasets.HGD.rst +0 -29
  190. braindecode-1.2.0/docs/generated/braindecode.datasets.MOABBDataset.rst +0 -29
  191. braindecode-1.2.0/docs/generated/braindecode.datasets.NMT.rst +0 -29
  192. braindecode-1.2.0/docs/generated/braindecode.datasets.SleepPhysionet.rst +0 -29
  193. braindecode-1.2.0/docs/generated/braindecode.datasets.SleepPhysionetChallenge2018.rst +0 -29
  194. braindecode-1.2.0/docs/generated/braindecode.datasets.TUH.rst +0 -29
  195. braindecode-1.2.0/docs/generated/braindecode.datasets.TUHAbnormal.rst +0 -29
  196. braindecode-1.2.0/docs/generated/braindecode.datasets.WindowsDataset.rst +0 -32
  197. braindecode-1.2.0/docs/generated/braindecode.datasets.create_from_X_y.rst +0 -12
  198. braindecode-1.2.0/docs/generated/braindecode.datasets.create_from_mne_epochs.rst +0 -12
  199. braindecode-1.2.0/docs/generated/braindecode.datasets.create_from_mne_raw.rst +0 -12
  200. braindecode-1.2.0/docs/generated/braindecode.datautil.load_concat_dataset.rst +0 -12
  201. braindecode-1.2.0/docs/generated/braindecode.datautil.save_concat_dataset.rst +0 -12
  202. braindecode-1.2.0/docs/generated/braindecode.functional.drop_path.rst +0 -12
  203. braindecode-1.2.0/docs/generated/braindecode.functional.glorot_weight_zero_bias.rst +0 -12
  204. braindecode-1.2.0/docs/generated/braindecode.functional.hilbert_freq.rst +0 -12
  205. braindecode-1.2.0/docs/generated/braindecode.functional.identity.rst +0 -12
  206. braindecode-1.2.0/docs/generated/braindecode.functional.plv_time.rst +0 -12
  207. braindecode-1.2.0/docs/generated/braindecode.functional.rescale_parameter.rst +0 -12
  208. braindecode-1.2.0/docs/generated/braindecode.functional.safe_log.rst +0 -12
  209. braindecode-1.2.0/docs/generated/braindecode.functional.square.rst +0 -12
  210. braindecode-1.2.0/docs/generated/braindecode.models.ATCNet.rst +0 -136
  211. braindecode-1.2.0/docs/generated/braindecode.models.AttentionBaseNet.rst +0 -136
  212. braindecode-1.2.0/docs/generated/braindecode.models.AttnSleep.rst +0 -136
  213. braindecode-1.2.0/docs/generated/braindecode.models.BDTCN.rst +0 -136
  214. braindecode-1.2.0/docs/generated/braindecode.models.BIOT.rst +0 -136
  215. braindecode-1.2.0/docs/generated/braindecode.models.CTNet.rst +0 -136
  216. braindecode-1.2.0/docs/generated/braindecode.models.ContraWR.rst +0 -136
  217. braindecode-1.2.0/docs/generated/braindecode.models.Deep4Net.rst +0 -133
  218. braindecode-1.2.0/docs/generated/braindecode.models.DeepSleepNet.rst +0 -136
  219. braindecode-1.2.0/docs/generated/braindecode.models.EEGConformer.rst +0 -143
  220. braindecode-1.2.0/docs/generated/braindecode.models.EEGITNet.rst +0 -133
  221. braindecode-1.2.0/docs/generated/braindecode.models.EEGInceptionERP.rst +0 -133
  222. braindecode-1.2.0/docs/generated/braindecode.models.EEGInceptionMI.rst +0 -136
  223. braindecode-1.2.0/docs/generated/braindecode.models.EEGMiner.rst +0 -136
  224. braindecode-1.2.0/docs/generated/braindecode.models.EEGModuleMixin.rst +0 -53
  225. braindecode-1.2.0/docs/generated/braindecode.models.EEGNeX.rst +0 -136
  226. braindecode-1.2.0/docs/generated/braindecode.models.EEGNet.rst +0 -133
  227. braindecode-1.2.0/docs/generated/braindecode.models.EEGSimpleConv.rst +0 -136
  228. braindecode-1.2.0/docs/generated/braindecode.models.EEGTCNet.rst +0 -136
  229. braindecode-1.2.0/docs/generated/braindecode.models.FBCNet.rst +0 -136
  230. braindecode-1.2.0/docs/generated/braindecode.models.FBLightConvNet.rst +0 -136
  231. braindecode-1.2.0/docs/generated/braindecode.models.FBMSNet.rst +0 -136
  232. braindecode-1.2.0/docs/generated/braindecode.models.IFNet.rst +0 -136
  233. braindecode-1.2.0/docs/generated/braindecode.models.Labram.rst +0 -171
  234. braindecode-1.2.0/docs/generated/braindecode.models.MSVTNet.rst +0 -136
  235. braindecode-1.2.0/docs/generated/braindecode.models.SCCNet.rst +0 -136
  236. braindecode-1.2.0/docs/generated/braindecode.models.SPARCNet.rst +0 -136
  237. braindecode-1.2.0/docs/generated/braindecode.models.ShallowFBCSPNet.rst +0 -133
  238. braindecode-1.2.0/docs/generated/braindecode.models.SignalJEPA.rst +0 -136
  239. braindecode-1.2.0/docs/generated/braindecode.models.SignalJEPA_Contextual.rst +0 -143
  240. braindecode-1.2.0/docs/generated/braindecode.models.SignalJEPA_PostLocal.rst +0 -143
  241. braindecode-1.2.0/docs/generated/braindecode.models.SignalJEPA_PreLocal.rst +0 -143
  242. braindecode-1.2.0/docs/generated/braindecode.models.SincShallowNet.rst +0 -136
  243. braindecode-1.2.0/docs/generated/braindecode.models.SleepStagerBlanco2020.rst +0 -136
  244. braindecode-1.2.0/docs/generated/braindecode.models.SleepStagerChambon2018.rst +0 -136
  245. braindecode-1.2.0/docs/generated/braindecode.models.SyncNet.rst +0 -136
  246. braindecode-1.2.0/docs/generated/braindecode.models.TIDNet.rst +0 -136
  247. braindecode-1.2.0/docs/generated/braindecode.models.TSception.rst +0 -136
  248. braindecode-1.2.0/docs/generated/braindecode.models.USleep.rst +0 -136
  249. braindecode-1.2.0/docs/generated/braindecode.preprocessing.Crop.rst +0 -21
  250. braindecode-1.2.0/docs/generated/braindecode.preprocessing.DropChannels.rst +0 -21
  251. braindecode-1.2.0/docs/generated/braindecode.preprocessing.Filter.rst +0 -21
  252. braindecode-1.2.0/docs/generated/braindecode.preprocessing.Pick.rst +0 -21
  253. braindecode-1.2.0/docs/generated/braindecode.preprocessing.Preprocessor.rst +0 -32
  254. braindecode-1.2.0/docs/generated/braindecode.preprocessing.Resample.rst +0 -21
  255. braindecode-1.2.0/docs/generated/braindecode.preprocessing.SetEEGReference.rst +0 -21
  256. braindecode-1.2.0/docs/generated/braindecode.preprocessing.create_fixed_length_windows.rst +0 -12
  257. braindecode-1.2.0/docs/generated/braindecode.preprocessing.create_windows_from_events.rst +0 -12
  258. braindecode-1.2.0/docs/generated/braindecode.preprocessing.create_windows_from_target_channels.rst +0 -12
  259. braindecode-1.2.0/docs/generated/braindecode.preprocessing.exponential_moving_demean.rst +0 -12
  260. braindecode-1.2.0/docs/generated/braindecode.preprocessing.exponential_moving_standardize.rst +0 -12
  261. braindecode-1.2.0/docs/generated/braindecode.preprocessing.filterbank.rst +0 -12
  262. braindecode-1.2.0/docs/generated/braindecode.preprocessing.preprocess.rst +0 -12
  263. braindecode-1.2.0/docs/generated/braindecode.regressor.EEGRegressor.rst +0 -161
  264. braindecode-1.2.0/docs/generated/braindecode.samplers.BalancedSequenceSampler.rst +0 -36
  265. braindecode-1.2.0/docs/generated/braindecode.samplers.DistributedRecordingSampler.rst +0 -41
  266. braindecode-1.2.0/docs/generated/braindecode.samplers.DistributedRelativePositioningSampler.rst +0 -38
  267. braindecode-1.2.0/docs/generated/braindecode.samplers.RecordingSampler.rst +0 -39
  268. braindecode-1.2.0/docs/generated/braindecode.samplers.RelativePositioningSampler.rst +0 -36
  269. braindecode-1.2.0/docs/generated/braindecode.samplers.SequenceSampler.rst +0 -23
  270. braindecode-1.2.0/docs/generated/braindecode.training.CroppedLoss.rst +0 -130
  271. braindecode-1.2.0/docs/generated/braindecode.training.CroppedTimeSeriesEpochScoring.rst +0 -52
  272. braindecode-1.2.0/docs/generated/braindecode.training.CroppedTrialEpochScoring.rst +0 -57
  273. braindecode-1.2.0/docs/generated/braindecode.training.PostEpochTrainScoring.rst +0 -52
  274. braindecode-1.2.0/docs/generated/braindecode.training.TimeSeriesLoss.rst +0 -130
  275. braindecode-1.2.0/docs/generated/braindecode.training.mixup_criterion.rst +0 -12
  276. braindecode-1.2.0/docs/generated/braindecode.training.predict_trials.rst +0 -12
  277. braindecode-1.2.0/docs/generated/braindecode.training.trial_preds_from_window_preds.rst +0 -12
  278. braindecode-1.2.0/docs/generated/braindecode.util.set_random_seeds.rst +0 -12
  279. braindecode-1.2.0/docs/generated/braindecode.visualization.compute_amplitude_gradients.rst +0 -12
  280. braindecode-1.2.0/docs/generated/braindecode.visualization.plot_confusion_matrix.rst +0 -12
  281. braindecode-1.2.0/docs/generated/convolution/braindecode.modules.AvgPool2dWithConv.rst +0 -130
  282. braindecode-1.2.0/docs/generated/convolution/braindecode.modules.CausalConv1d.rst +0 -132
  283. braindecode-1.2.0/docs/generated/convolution/braindecode.modules.CombinedConv.rst +0 -130
  284. braindecode-1.2.0/docs/generated/convolution/braindecode.modules.Conv2dWithConstraint.rst +0 -121
  285. braindecode-1.2.0/docs/generated/convolution/braindecode.modules.DepthwiseConv2d.rst +0 -121
  286. braindecode-1.2.0/docs/generated/filter/braindecode.modules.FilterBankLayer.rst +0 -130
  287. braindecode-1.2.0/docs/generated/filter/braindecode.modules.GeneralizedGaussianFilter.rst +0 -144
  288. braindecode-1.2.0/docs/generated/layers/braindecode.modules.Chomp1d.rst +0 -135
  289. braindecode-1.2.0/docs/generated/layers/braindecode.modules.DropPath.rst +0 -135
  290. braindecode-1.2.0/docs/generated/layers/braindecode.modules.Ensure4d.rst +0 -130
  291. braindecode-1.2.0/docs/generated/layers/braindecode.modules.TimeDistributed.rst +0 -130
  292. braindecode-1.2.0/docs/generated/linear/braindecode.modules.LinearWithConstraint.rst +0 -121
  293. braindecode-1.2.0/docs/generated/linear/braindecode.modules.MaxNormLinear.rst +0 -121
  294. braindecode-1.2.0/docs/generated/stats/braindecode.modules.LogPowerLayer.rst +0 -6
  295. braindecode-1.2.0/docs/generated/stats/braindecode.modules.LogVarLayer.rst +0 -6
  296. braindecode-1.2.0/docs/generated/stats/braindecode.modules.MaxLayer.rst +0 -6
  297. braindecode-1.2.0/docs/generated/stats/braindecode.modules.MeanLayer.rst +0 -6
  298. braindecode-1.2.0/docs/generated/stats/braindecode.modules.StatLayer.rst +0 -130
  299. braindecode-1.2.0/docs/generated/stats/braindecode.modules.StdLayer.rst +0 -6
  300. braindecode-1.2.0/docs/generated/stats/braindecode.modules.VarLayer.rst +0 -6
  301. braindecode-1.2.0/docs/generated/util/braindecode.modules.aggregate_probas.rst +0 -12
  302. braindecode-1.2.0/docs/generated/wrapper/braindecode.modules.Expression.rst +0 -130
  303. braindecode-1.2.0/docs/generated/wrapper/braindecode.modules.IntermediateOutputWrapper.rst +0 -130
  304. braindecode-1.2.0/docs/models/categorization/attention.rst +0 -31
  305. braindecode-1.2.0/docs/models/categorization/channel.rst +0 -31
  306. braindecode-1.2.0/docs/models/categorization/convolution.rst +0 -33
  307. braindecode-1.2.0/docs/models/categorization/filterbank.rst +0 -31
  308. braindecode-1.2.0/docs/models/categorization/gnn.rst +0 -30
  309. braindecode-1.2.0/docs/models/categorization/interpretable.rst +0 -31
  310. braindecode-1.2.0/docs/models/categorization/llm.rst +0 -31
  311. braindecode-1.2.0/docs/models/categorization/recurrent.rst +0 -31
  312. braindecode-1.2.0/docs/models/categorization/spd.rst +0 -31
  313. braindecode-1.2.0/docs/models/models.rst +0 -78
  314. braindecode-1.2.0/docs/models/models_categorization.rst +0 -201
  315. braindecode-1.2.0/docs/models/models_table.rst +0 -191
  316. braindecode-1.2.0/docs/models/models_visualization.rst +0 -31
  317. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/LICENSE.txt +0 -0
  318. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/MANIFEST.in +0 -0
  319. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/NOTICE.txt +0 -0
  320. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/README.rst +0 -0
  321. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/__init__.py +0 -0
  322. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/augmentation/__init__.py +0 -0
  323. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/augmentation/base.py +0 -0
  324. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/augmentation/functional.py +0 -0
  325. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/augmentation/transforms.py +0 -0
  326. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/classifier.py +0 -0
  327. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/__init__.py +0 -0
  328. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/base.py +0 -0
  329. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/bbci.py +0 -0
  330. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/bcicomp.py +0 -0
  331. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/bids.py +0 -0
  332. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/mne.py +0 -0
  333. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/moabb.py +0 -0
  334. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/nmt.py +0 -0
  335. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/sleep_physio_challe_18.py +0 -0
  336. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/sleep_physionet.py +0 -0
  337. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/tuh.py +0 -0
  338. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datasets/xy.py +0 -0
  339. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datautil/__init__.py +0 -0
  340. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datautil/serialization.py +0 -0
  341. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/datautil/util.py +0 -0
  342. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/eegneuralnet.py +0 -0
  343. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/functional/__init__.py +0 -0
  344. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/functional/functions.py +0 -0
  345. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/functional/initialization.py +0 -0
  346. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/base.py +0 -0
  347. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/biot.py +0 -0
  348. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/contrawr.py +0 -0
  349. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegitnet.py +0 -0
  350. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/eegminer.py +0 -0
  351. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/fbcnet.py +0 -0
  352. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/fblightconvnet.py +0 -0
  353. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/fbmsnet.py +0 -0
  354. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/hybrid.py +0 -0
  355. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/ifnet.py +0 -0
  356. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/labram.py +0 -0
  357. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/msvtnet.py +0 -0
  358. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/signal_jepa.py +0 -0
  359. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/sinc_shallow.py +0 -0
  360. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/syncnet.py +0 -0
  361. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/models/tcn.py +0 -0
  362. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/__init__.py +0 -0
  363. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/activation.py +0 -0
  364. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/attention.py +0 -0
  365. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/blocks.py +0 -0
  366. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/convolution.py +0 -0
  367. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/filter.py +0 -0
  368. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/layers.py +0 -0
  369. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/linear.py +0 -0
  370. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/parametrization.py +0 -0
  371. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/stats.py +0 -0
  372. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/util.py +0 -0
  373. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/modules/wrapper.py +0 -0
  374. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/preprocessing/__init__.py +0 -0
  375. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/preprocessing/mne_preprocess.py +0 -0
  376. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/preprocessing/preprocess.py +0 -0
  377. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/preprocessing/windowers.py +0 -0
  378. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/regressor.py +0 -0
  379. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/samplers/__init__.py +0 -0
  380. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/samplers/base.py +0 -0
  381. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/samplers/ssl.py +0 -0
  382. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/training/__init__.py +0 -0
  383. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/training/callbacks.py +0 -0
  384. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/training/losses.py +0 -0
  385. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/training/scoring.py +0 -0
  386. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/util.py +0 -0
  387. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/visualization/__init__.py +0 -0
  388. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/visualization/confusion_matrices.py +0 -0
  389. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode/visualization/gradients.py +0 -0
  390. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode.egg-info/dependency_links.txt +0 -0
  391. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/braindecode.egg-info/top_level.txt +0 -0
  392. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/Makefile +0 -0
  393. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/_templates/autosummary/class.rst +0 -0
  394. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/_templates/autosummary/function.rst +0 -0
  395. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/cite.rst +0 -0
  396. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/help.rst +0 -0
  397. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/install/install.rst +0 -0
  398. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/install/install_pip.rst +0 -0
  399. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/docs/install/install_source.rst +0 -0
  400. {braindecode-1.2.0 → braindecode-1.2.0.dev168908090}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: braindecode
3
- Version: 1.2.0
3
+ Version: 1.2.0.dev168908090
4
4
  Summary: Deep learning software to decode EEG, ECG or MEG signals
5
5
  Author-email: Robin Tibor Schirrmeister <robintibor@gmail.com>
6
6
  Maintainer-email: Alexandre Gramfort <agramfort@meta.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Robin Tibor Schirrmeister <robintibor@gmail.com>
@@ -17,7 +17,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
17
  Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
- Requires-Python: >=3.10
20
+ Requires-Python: >3.10
21
21
  Description-Content-Type: text/x-rst
22
22
  License-File: LICENSE.txt
23
23
  License-File: NOTICE.txt
@@ -49,10 +49,6 @@ Requires-Dist: mypy; extra == "tests"
49
49
  Provides-Extra: docs
50
50
  Requires-Dist: sphinx_gallery; extra == "docs"
51
51
  Requires-Dist: sphinx_rtd_theme; extra == "docs"
52
- Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
53
- Requires-Dist: sphinx-autobuild; extra == "docs"
54
- Requires-Dist: sphinxcontrib-bibtex; extra == "docs"
55
- Requires-Dist: sphinx_sitemap; extra == "docs"
56
52
  Requires-Dist: pydata_sphinx_theme; extra == "docs"
57
53
  Requires-Dist: numpydoc; extra == "docs"
58
54
  Requires-Dist: memory_profiler; extra == "docs"
@@ -63,7 +59,6 @@ Requires-Dist: lightning; extra == "docs"
63
59
  Requires-Dist: seaborn; extra == "docs"
64
60
  Requires-Dist: pre-commit; extra == "docs"
65
61
  Requires-Dist: openneuro-py; extra == "docs"
66
- Requires-Dist: plotly; extra == "docs"
67
62
  Provides-Extra: all
68
63
  Requires-Dist: braindecode[docs,moabb,tests]; extra == "all"
69
64
  Dynamic: license-file
@@ -4,7 +4,6 @@ Some predefined network architectures for EEG decoding.
4
4
 
5
5
  from .atcnet import ATCNet
6
6
  from .attentionbasenet import AttentionBaseNet
7
- from .attn_sleep import AttnSleep
8
7
  from .base import EEGModuleMixin
9
8
  from .biot import BIOT
10
9
  from .contrawr import ContraWR
@@ -16,8 +15,9 @@ from .eeginception_erp import EEGInceptionERP
16
15
  from .eeginception_mi import EEGInceptionMI
17
16
  from .eegitnet import EEGITNet
18
17
  from .eegminer import EEGMiner
19
- from .eegnet import EEGNet, EEGNetv4
18
+ from .eegnet import EEGNetv1, EEGNetv4
20
19
  from .eegnex import EEGNeX
20
+ from .eegresnet import EEGResNet
21
21
  from .eegsimpleconv import EEGSimpleConv
22
22
  from .eegtcnet import EEGTCNet
23
23
  from .fbcnet import FBCNet
@@ -38,11 +38,12 @@ from .signal_jepa import (
38
38
  from .sinc_shallow import SincShallowNet
39
39
  from .sleep_stager_blanco_2020 import SleepStagerBlanco2020
40
40
  from .sleep_stager_chambon_2018 import SleepStagerChambon2018
41
+ from .sleep_stager_eldele_2021 import SleepStagerEldele2021
41
42
  from .sparcnet import SPARCNet
42
43
  from .syncnet import SyncNet
43
44
  from .tcn import BDTCN, TCN
44
45
  from .tidnet import TIDNet
45
- from .tsinception import TSception
46
+ from .tsinception import TSceptionV1
46
47
  from .usleep import USleep
47
48
  from .util import _init_models_dict, models_mandatory_parameters
48
49
 
@@ -52,7 +53,6 @@ _init_models_dict()
52
53
 
53
54
  __all__ = [
54
55
  "ATCNet",
55
- "AttnSleep",
56
56
  "AttentionBaseNet",
57
57
  "EEGModuleMixin",
58
58
  "BIOT",
@@ -65,9 +65,10 @@ __all__ = [
65
65
  "EEGInceptionMI",
66
66
  "EEGITNet",
67
67
  "EEGMiner",
68
- "EEGNet",
68
+ "EEGNetv1",
69
69
  "EEGNetv4",
70
70
  "EEGNeX",
71
+ "EEGResNet",
71
72
  "EEGSimpleConv",
72
73
  "EEGTCNet",
73
74
  "FBCNet",
@@ -86,12 +87,13 @@ __all__ = [
86
87
  "SincShallowNet",
87
88
  "SleepStagerBlanco2020",
88
89
  "SleepStagerChambon2018",
90
+ "SleepStagerEldele2021",
89
91
  "SPARCNet",
90
92
  "SyncNet",
91
93
  "BDTCN",
92
94
  "TCN",
93
95
  "TIDNet",
94
- "TSception",
96
+ "TSceptionV1",
95
97
  "USleep",
96
98
  "_init_models_dict",
97
99
  "models_mandatory_parameters",
@@ -138,7 +138,7 @@ class ATCNet(EEGModuleMixin, nn.Module):
138
138
  .. rubric:: Usage and Configuration
139
139
 
140
140
  - ``conv_block_n_filters (F1)``, ``conv_block_depth_mult (D)`` → capacity of the stem
141
- (with ``F2 = F1·D`` feeding attention/TCN), dimensions aligned to ``F2``, like :class:`EEGNet`.
141
+ (with ``F2 = F1·D`` feeding attention/TCN), dimensions aligned to ``F2``, like `EEGNetv4`.
142
142
  - Pool sizes ``P1,P2`` trade temporal resolution for stability/compute; they set
143
143
  ``T_c = T/(P1·P2)`` and thus window width ``T_w``.
144
144
  - ``n_windows`` controls the ensemble over shifts (compute ∝ windows).
@@ -26,150 +26,25 @@ from braindecode.modules.attention import (
26
26
  class AttentionBaseNet(EEGModuleMixin, nn.Module):
27
27
  """AttentionBaseNet from Wimpff M et al. (2023) [Martin2023]_.
28
28
 
29
- :bdg-success:`Convolution` :bdg-info:`Small Attention`
30
-
31
29
  .. figure:: https://content.cld.iop.org/journals/1741-2552/21/3/036020/revision2/jnead48b9f2_hr.jpg
32
- :align: center
33
- :alt: AttentionBaseNet Architecture
34
- :width: 640px
35
-
36
-
37
- .. rubric:: Architectural Overview
38
-
39
- AttentionBaseNet is a *convolution-first* network with a *channel-attention* stage.
40
- The end-to-end flow is:
41
-
42
- - (i) :class:`_FeatureExtractor` learns a temporal filter bank and per-filter spatial
43
- projections (depthwise across electrodes), then condenses time by pooling;
44
- - (ii) **Channel Expansion** uses a ``1x1`` convolution to set the feature width;
45
- - (iii) :class:`_ChannelAttentionBlock` refines features via depthwise–pointwise temporal
46
- convs and an optional channel-attention module (SE/CBAM/ECA/…);
47
- - (iv) **Classifier** flattens the sequence and applies a linear readout.
48
-
49
- This design mirrors shallow CNN pipelines (EEGNet-style stem) but inserts a pluggable
50
- attention unit that *re-weights channels* (and optionally temporal positions) before
51
- classification.
52
-
53
-
54
- .. rubric:: Macro Components
55
-
56
- - :class:`_FeatureExtractor` **(Shallow conv stem → condensed feature map)**
57
-
58
- - *Operations.*
59
- - **Temporal conv** (:class:`torch.nn.Conv2d`) with kernel ``(1, L_t)`` creates a learned
60
- FIR-like filter bank with ``n_temporal_filters`` maps.
61
- - **Depthwise spatial conv** (:class:`torch.nn.Conv2d`, ``groups=n_temporal_filters``)
62
- with kernel ``(n_chans, 1)`` learns per-filter spatial projections over the full montage.
63
- - **BatchNorm → ELU → AvgPool → Dropout** stabilize and downsample time.
64
- - Output shape: ``(B, F2, 1, T₁)`` with ``F2 = n_temporal_filters x spatial_expansion``.
65
-
66
- *Interpretability/robustness.* Temporal kernels behave as analyzable FIR filters; the
67
- depthwise spatial step yields rhythm-specific topographies. Pooling acts as a local
68
- integrator that reduces variance on short EEG windows.
69
-
70
- - **Channel Expansion**
71
-
72
- - *Operations.*
73
- - A ``1x1`` conv → BN → activation maps ``F2 → ch_dim`` without changing
74
- the temporal length ``T₁`` (shape: ``(B, ch_dim, 1, T₁)``).
75
- This sets the embedding width for the attention block.
76
-
77
- - :class:`_ChannelAttentionBlock` **(temporal refinement + channel attention)**
78
-
79
- - *Operations.*
80
- - **Depthwise temporal conv** ``(1, L_a)`` (groups=``ch_dim``) + **pointwise ``1x1``**,
81
- BN and activation → preserves shape ``(B, ch_dim, 1, T₁)`` while refining timing.
82
- - **Optional attention module** (see *Additional Mechanisms*) applies channel reweighting
83
- (some variants also apply temporal gating).
84
- - **AvgPool (1, P₂)** with stride ``(1, S₂)`` and **Dropout** → outputs
85
- ``(B, ch_dim, 1, T₂)``.
86
-
87
- *Role.* Emphasizes informative channels (and, in certain modes, salient time steps)
88
- before the classifier; complements the convolutional priors with adaptive re-weighting.
89
-
90
- - **Classifier (aggregation + readout)**
91
-
92
- *Operations.* :class:`torch.nn.Flatten` → :class:`torch.nn.Linear` from
93
- ``(B, ch_dim·T₂)`` to classes.
94
-
95
-
96
- .. rubric:: Convolutional Details
97
-
98
- - **Temporal (where time-domain patterns are learned).**
99
- Wide kernels in the stem (``(1, L_t)``) act as a learned filter bank for oscillatory
100
- bands/transients; the attention block’s depthwise temporal conv (``(1, L_a)``) sharpens
101
- short-term dynamics after downsampling. Pool sizes/strides (``P₁,S₁`` then ``P₂,S₂``)
102
- set the token rate and effective temporal resolution.
103
-
104
- - **Spatial (how electrodes are processed).**
105
- A depthwise spatial conv with kernel ``(n_chans, 1)`` spans the full montage to
106
- learn *per-temporal-filter* spatial projections (no cross-filter mixing at this step),
107
- mirroring the interpretable spatial stage in shallow CNNs.
30
+ :align: center
31
+ :alt: Attention Base Net
108
32
 
109
- - **Spectral (how frequency content is captured).**
110
- No explicit Fourier/wavelet transform is used in the stem—spectral selectivity
111
- emerges from learned temporal kernels. When ``attention_mode="fca"``, a frequency
112
- channel attention (DCT-based) summarizes frequencies to drive channel weights.
33
+ Neural Network from the paper: EEG motor imagery decoding:
34
+ A framework for comparative analysis with channel attention
35
+ mechanisms
113
36
 
37
+ The paper and original code with more details about the methodological
38
+ choices are available at the [Martin2023]_ and [MartinCode]_.
114
39
 
115
- .. rubric:: Attention / Sequential Modules
40
+ The AttentionBaseNet architecture is composed of four modules:
41
+ - Input Block that performs a temporal convolution and a spatial
42
+ convolution.
43
+ - Channel Expansion that modifies the number of channels.
44
+ - An attention block that performs channel attention with several
45
+ options
46
+ - ClassificationHead
116
47
 
117
- - **Type.** Channel attention chosen by ``attention_mode`` (SE, ECA, CBAM, CAT, GSoP,
118
- EncNet, GE, GCT, SRM, CATLite). Most operate purely on channels; CBAM/CAT additionally
119
- include temporal attention.
120
-
121
- - **Shapes.** Input/Output around attention: ``(B, ch_dim, 1, T₁)``. Re-arrangements
122
- (if any) are internal to the module; the block returns the same shape before pooling.
123
-
124
- - **Role.** Re-weights channels (and optionally time) to highlight informative sources
125
- and suppress distractors, improving SNR ahead of the linear head.
126
-
127
-
128
- .. rubric:: Additional Mechanisms
129
-
130
- - **Attention variants at a glance.**
131
- - ``"se"``: Squeeze-and-Excitation (global pooling → bottleneck → gates).
132
- - ``"gsop"``: Global second-order pooling (covariance-aware channel weights).
133
- - ``"fca"``: Frequency Channel Attention (DCT summary; uses ``seq_len`` and ``freq_idx``).
134
- - ``"encnet"``: EncNet with learned codewords (uses ``n_codewords``).
135
- - ``"eca"``: Efficient Channel Attention (local 1-D conv over channel descriptor; uses ``kernel_size``).
136
- - ``"ge"``: Gather–Excite (context pooling with optional MLP; can use ``extra_params``).
137
- - ``"gct"``: Gated Channel Transformation (global context normalization + gating).
138
- - ``"srm"``: Style-based recalibration (mean–std descriptors; optional MLP).
139
- - ``"cbam"``: Channel then temporal attention (uses ``kernel_size``).
140
- - ``"cat"`` / ``"catlite"``: Collaborative (channel ± temporal) attention; *lite* omits temporal.
141
- - **Auto-compatibility on short inputs.**
142
-
143
- If the input duration is too short for the configured kernels/pools, the implementation
144
- **automatically rescales** temporal lengths/strides downward (with a warning) to keep
145
- shapes valid and preserve the pipeline semantics.
146
-
147
-
148
- .. rubric:: Usage and Configuration
149
-
150
- - ``n_temporal_filters``, ``temporal_filter_length`` and ``spatial_expansion``:
151
- control the capacity and the number of spatial projections in the stem.
152
- - ``pool_length_inp``, ``pool_stride_inp`` then ``pool_length``, ``pool_stride``:
153
- trade temporal resolution for compute; they determine the final sequence length ``T₂``.
154
- - ``ch_dim``: width after the ``1x1`` expansion and the effective embedding size for attention.
155
- - ``attention_mode`` + its specific hyperparameters (``reduction_rate``,
156
- ``kernel_size``, ``seq_len``, ``freq_idx``, ``n_codewords``, ``use_mlp``):
157
- select and tune the reweighting mechanism.
158
- - ``drop_prob_inp`` and ``drop_prob_attn``: regularize stem and attention stages.
159
- - **Training tips.**
160
-
161
- Start with moderate pooling (e.g., ``P₁=75,S₁=15``) and ELU activations; enable attention
162
- only after the stem learns stable filters. For small datasets, prefer simpler modes
163
- (``"se"``, ``"eca"``) before heavier ones (``"gsop"``, ``"encnet"``).
164
-
165
- Notes
166
- -----
167
- - Sequence length after each stage is computed internally; the final classifier expects
168
- a flattened ``ch_dim x T₂`` vector.
169
- - Attention operates on *channel* dimension by design; temporal gating exists only in
170
- specific variants (CBAM/CAT).
171
- - The paper and original code with more details about the methodological
172
- choices are available at the [Martin2023]_ and [MartinCode]_.
173
48
  .. versionadded:: 0.9
174
49
 
175
50
  Parameters
@@ -198,18 +73,18 @@ class AttentionBaseNet(EEGModuleMixin, nn.Module):
198
73
  the depth of the network after the initial layer. Default is 16.
199
74
  attention_mode : str, optional
200
75
  The type of attention mechanism to apply. If `None`, no attention is applied.
201
- - "se" for Squeeze-and-excitation network
202
- - "gsop" for Global Second-Order Pooling
203
- - "fca" for Frequency Channel Attention Network
204
- - "encnet" for context encoding module
205
- - "eca" for Efficient channel attention for deep convolutional neural networks
206
- - "ge" for Gather-Excite
207
- - "gct" for Gated Channel Transformation
208
- - "srm" for Style-based Recalibration Module
209
- - "cbam" for Convolutional Block Attention Module
210
- - "cat" for Learning to collaborate channel and temporal attention
211
- from multi-information fusion
212
- - "catlite" for Learning to collaborate channel attention
76
+ - "se" for Squeeze-and-excitation network
77
+ - "gsop" for Global Second-Order Pooling
78
+ - "fca" for Frequency Channel Attention Network
79
+ - "encnet" for context encoding module
80
+ - "eca" for Efficient channel attention for deep convolutional neural networks
81
+ - "ge" for Gather-Excite
82
+ - "gct" for Gated Channel Transformation
83
+ - "srm" for Style-based Recalibration Module
84
+ - "cbam" for Convolutional Block Attention Module
85
+ - "cat" for Learning to collaborate channel and temporal attention
86
+ from multi-information fusion
87
+ - "catlite" for Learning to collaborate channel attention
213
88
  from multi-information fusion (lite version, cat w/o temporal attention)
214
89
  pool_length : int, default=8
215
90
  The length of the window for the average pooling operation.
@@ -39,7 +39,7 @@ class CTNet(EEGModuleMixin, nn.Module):
39
39
  The architecture consists of three main components:
40
40
 
41
41
  1. **Convolutional Module**:
42
- - Apply :class:`EEGNet` to perform some feature extraction, denoted here as
42
+ - Apply EEGNetV4 to perform some feature extraction, denoted here as
43
43
  _PatchEmbeddingEEGNet module.
44
44
 
45
45
  2. **Transformer Encoder Module**:
@@ -19,13 +19,9 @@ from braindecode.modules import (
19
19
  class Deep4Net(EEGModuleMixin, nn.Sequential):
20
20
  """Deep ConvNet model from Schirrmeister et al (2017) [Schirrmeister2017]_.
21
21
 
22
- :bdg-success:`Convolution`
23
-
24
- .. figure:: https://onlinelibrary.wiley.com/cms/asset/fc200ccc-d8c4-45b4-8577-56ce4d15999a/hbm23730-fig-0001-m.jpg
22
+ .. figure:: https://onlinelibrary.wiley.com/cms/asset/fc200ccc-d8c4-45b4-8577-56ce4d15999a/hbm23730-fig-0001-m.jpg
25
23
  :align: center
26
- :alt: Deep4Net Architecture
27
- :width: 600px
28
-
24
+ :alt: CTNet Architecture
29
25
 
30
26
  Model described in [Schirrmeister2017]_.
31
27
 
@@ -8,128 +8,14 @@ from braindecode.models.base import EEGModuleMixin
8
8
 
9
9
 
10
10
  class DeepSleepNet(EEGModuleMixin, nn.Module):
11
- """DeepSleepNet from Supratak et al. (2017) [Supratak2017]_.
11
+ """Sleep staging architecture from Supratak et al. (2017) [Supratak2017]_.
12
12
 
13
- :bdg-success:`Convolution` :bdg-info:`Recurrent`
14
-
15
- .. figure:: https://raw.githubusercontent.com/akaraspt/deepsleepnet/master/img/deepsleepnet.png
13
+ .. figure:: https://raw.githubusercontent.com/akaraspt/deepsleepnet/refs/heads/master/img/deepsleepnet.png
16
14
  :align: center
17
15
  :alt: DeepSleepNet Architecture
18
- :width: 700px
19
-
20
- .. rubric:: Architectural Overview
21
-
22
- DeepSleepNet couples **dual-path convolution neural network representation learning** with
23
- **sequence residual learning** via bidirectional LSTMs.
24
-
25
- The network have:
26
-
27
- - (i) learns complementary, time-frequency features from each
28
- 30-s epoch using **two parallel CNNs** (small vs. large first-layer filters), then
29
- - (ii) models **temporal dependencies across epochs** using **two-layer BiLSTMs**
30
- with a **residual shortcut** from the CNN features, and finally
31
- - (iii) outputs per-epoch sleep stages. This design encodes both
32
- epoch-local patterns and longer-range transition rules used by human scorers.
33
-
34
- In term of implementation:
35
-
36
- - (i) :class:`_RepresentationLearning` two CNNs extract epoch-wise features
37
- (small-filter path for temporal precision; large-filter path for frequency precision);
38
- - (ii) :class:`_SequenceResidualLearning` stacked BiLSTMs with peepholes + residual shortcut
39
- inject temporal context while preserving CNN evidence;
40
- - (iii) :class:`_Classifier` linear readout (softmax) for the five sleep stages.
41
-
42
- .. rubric:: Macro Components
43
-
44
- - :class:`_RepresentationLearning` **(dual-path CNN → epoch feature)**
45
-
46
- - *Operations.*
47
- - **Small-filter CNN** 4 times:
48
- - :class:`~torch.nn.Conv1d`
49
- - :class:`~torch.nn.BatchNorm1d`
50
- - :class:`~torch.nn.ReLU`
51
- - :class:`~torch.nn.MaxPool1d` after.
52
- First conv uses **filter length ≈ Fs/2** and **stride ≈ Fs/16** to emphasize *timing* of graphoelements.
53
- - **Large-filter CNN**:
54
- - Same stack but first conv uses **filter length ≈ 4·Fs** and
55
- - **stride ≈ Fs/2** to emphasize *frequency* content.
56
- - Outputs from both paths are **concatenated** into the epoch embedding ``a_t``.
57
-
58
- - *Rationale.*
59
- Two first-layer scales provide a **learned, dual-scale filter bank** that trades
60
- temporal vs. frequency precision without hand-crafted features.
61
-
62
- - :class:`_SequenceResidualLearning` (:class:`~torch.nn.BiLSTM` **context + residual fusion)**
63
-
64
- - *Operations.*
65
- - **Two-layer BiLSTM** with **peephole connections** processes the sequence of epoch embeddings
66
- ``{a_t}`` forward and backward; hidden states from both directions are **concatenated**.
67
- - A **shortcut MLP** (fully connected + :class:`~torch.nn.BatchNorm1d` + :class:`~torch.nn.ReLU`) projects ``a_t`` to the BiLSTM output
68
- dimension and is **added** (residual) to the :class:`~torch.nn.BiLSTM` output at each time step.
69
- - *Role.* Encodes **stage-transition rules** and smooths predictions over time while preserving
70
- salient CNN features via the residual path.
71
-
72
- - :class:`_Classifier` **(epoch-wise prediction)**
73
-
74
- - *Operations.*
75
- - :class:`~torch.nn.Linear` to produce per-epoch class probabilities.
76
16
 
77
- Original training uses two-step optimization: CNN pretraining on class-balanced data,
78
- then end-to-end fine-tuning with sequential batches.
79
-
80
- .. rubric:: Convolutional Details
81
-
82
- - **Temporal (where time-domain patterns are learned).**
83
-
84
- Both CNN paths use **1-D temporal convolutions**. The *small-filter* path (first kernel ≈ Fs/2,
85
- stride ≈ Fs/16) captures *when* characteristic transients occur; the *large-filter* path
86
- (first kernel ≈ 4·Fs, stride ≈ Fs/2) captures *which* frequency components dominate over the
87
- epoch. Deeper layers use **small kernels** to refine features with fewer parameters, interleaved
88
- with **max pooling** for downsampling.
89
-
90
- - **Spatial (how channels are processed).**
91
- The original model operates on **single-channel** raw EEG; convolutions therefore mix only
92
- along time (no spatial convolution across electrodes).
93
-
94
- - **Spectral (how frequency information emerges).**
95
- No explicit Fourier/wavelet transform is used. The **large-filter path** serves as a
96
- *frequency-sensitive* analyzer, while the **small-filter path** remains *time-sensitive*,
97
- together functioning as a **two-band learned filter bank** at the first layer.
98
-
99
- .. rubric:: Attention / Sequential Modules
100
-
101
- - **Type.** **Bidirectional LSTM** (two layers) with **peephole connections**; forward and
102
- backward streams are independent and concatenated.
103
- - **Shapes.** For a sequence of ``N`` epochs, the CNN produces ``{a_t} ∈ R^{D}``;
104
- BiLSTM outputs ``h_t ∈ R^{2H}``; the shortcut MLP maps ``a_t → R^{2H}`` to enable
105
- **element-wise residual addition**.
106
- - **Role.** Models **long-range temporal dependencies** (e.g., persisting N2 without visible
107
- K-complex/spindles), stabilizing per-epoch predictions.
108
-
109
-
110
- .. rubric:: Additional Mechanisms
111
-
112
- - **Residual shortcut over sequence encoder.** Adds projected CNN features to BiLSTM outputs,
113
- improving gradient flow and retaining discriminative content from representation learning.
114
- - **Two-step training.**
115
- - (i) **Pretrain** the CNN paths with class-balanced sampling;
116
- - (ii) **fine-tune** the full network with sequential batches, using **lower LR** for CNNs and **higher LR** for the
117
- sequence encoder.
118
- - **State handling.** BiLSTM states are **reinitialized per subject** so that temporal context
119
- does not leak across recordings.
120
-
121
-
122
- .. rubric:: Usage and Configuration
123
-
124
- - **Epoch pipeline.** Use **two parallel CNNs** with the first conv sized to **Fs/2** (small path)
125
- and **4·Fs** (large path), with strides **Fs/16** and **Fs/2**, respectively; stack three more
126
- conv blocks with small kernels, plus **max pooling** in each path. Concatenate path outputs
127
- to form epoch embeddings.
128
- - **Sequence encoder.** Apply **two-layer BiLSTM (peepholes)** over the sequence of embeddings;
129
- add a **projection MLP** on the CNN features and **sum** with BiLSTM outputs (residual).
130
- Finish with :class:`~torch.nn.Linear` per epoch.
131
- - **Reference implementation.** See the official repository for a faithful implementation and
132
- training scripts.
17
+ Convolutional neural network and bidirectional-Long Short-Term
18
+ for single channels sleep staging described in [Supratak2017]_.
133
19
 
134
20
  Parameters
135
21
  ----------
@@ -146,6 +32,7 @@ class DeepSleepNet(EEGModuleMixin, nn.Module):
146
32
  drop_prob : float, default=0.5
147
33
  The dropout rate for regularization. Values should be between 0 and 1.
148
34
 
35
+
149
36
  References
150
37
  ----------
151
38
  .. [Supratak2017] Supratak, A., Dong, H., Wu, C., & Guo, Y. (2017).
@@ -27,25 +27,22 @@ class EEGConformer(EEGModuleMixin, nn.Module):
27
27
  EEG-Conformer is a *convolution-first* model augmented with a *lightweight transformer
28
28
  encoder*. The end-to-end flow is:
29
29
 
30
- - (i) :class:`_PatchEmbedding` converts the continuous EEG into a compact sequence of tokens via a
31
- :class:`ShallowFBCSPNet` temporal–spatial conv stem and temporal pooling;
32
- - (ii) :class:`_TransformerEncoder` applies small multi-head self-attention to integrate
33
- longer-range temporal context across tokens;
30
+ - (i) :class:`_PatchEmbedding` converts the continuous EEG into a compact sequence of tokens via a :class:`ShallowFBCSPNet` temporal–spatial conv stem and temporal pooling;
31
+ - (ii) :class:`_TransformerEncoder applies small multi-head self-attention to integrate longer-range temporal context across tokens;
34
32
  - (iii) :class:`_ClassificationHead` aggregates the sequence and performs a linear readout.
35
- This preserves the strong inductive biases of shallow CNN filter banks while adding
36
- just enough attention to capture dependencies beyond the pooling horizon [song2022]_.
33
+ This preserves the strong inductive biases of shallow CNN filter banks while adding
34
+ just enough attention to capture dependencies beyond the pooling horizon [song2022]_.
37
35
 
38
36
  .. rubric:: Macro Components
39
37
 
40
38
  - :class:`_PatchEmbedding` **(Shallow conv stem → tokens)**
41
39
 
42
- - *Operations.*
43
- - A temporal convolution (`:class:torch.nn.Conv2d`) ``(1 x L_t)`` forms a data-driven "filter bank";
44
- - A spatial convolution (`:class:torch.nn.Conv2d`) (n_chans x 1)`` projects across electrodes,
45
- collapsing the channel axis into a virtual channel.
46
- - **Normalization function** :class:`torch.nn.BatchNorm`
47
- - **Activation function** :class:`torch.nn.ELU`
48
- - **Average Pooling** :class:`torch.nn.AvgPool` along time (kernel ``(1, P)`` with stride ``(1, S)``)
40
+ - *Operations.*
41
+ - A temporal convolution (`:class:`torch.nn.Conv2d`) ``(1 x L_t)`` forms a data-driven "filter bank";
42
+ - A spatial convolution (`:class:`torch.nn.Conv2d`) (n_chans x 1)`` projects across electrodes, collapsing the channel axis into a virtual channel.
43
+ - **Normalization function** `:class:torch.nn.BatchNorm`
44
+ - **Activation function** `:class:torch.nn.ELU`
45
+ - **Average Pooling** `:class:torch.nn.AvgPool` along time (kernel ``(1, P)`` with stride ``(1, S)``)
49
46
  - final ``1x1`` :class:`torch.nn.Linear` projection.
50
47
 
51
48
  The result is rearranged to a token sequence ``(B, S_tokens, D)``, where ``D = n_filters_time``.
@@ -56,7 +53,7 @@ class EEGConformer(EEGModuleMixin, nn.Module):
56
53
 
57
54
  - :class:`_TransformerEncoder` **(context over temporal tokens)**
58
55
 
59
- - *Operations.*
56
+ - *Operations.*
60
57
  - A stack of ``att_depth`` encoder blocks. :class:`_TransformerEncoderBlock`
61
58
  - Each block applies LayerNorm :class:`torch.nn.LayerNorm`
62
59
  - Multi-Head Self-Attention (``att_heads``) with dropout + residual :class:`MultiHeadAttention` (:class:`torch.nn.Dropout`)
@@ -70,7 +67,7 @@ class EEGConformer(EEGModuleMixin, nn.Module):
70
67
 
71
68
  - :class:`ClassificationHead` **(aggregation + readout)**
72
69
 
73
- - *Operations*.
70
+ - *Operations*.
74
71
  - Flatten, :class:`torch.nn.Flatten` the sequence ``(B, S_tokens·D)`` -
75
72
  - MLP (:class:`torch.nn.Linear` → activation (default: :class:`torch.nn.ELU`) → :class:`torch.nn.Dropout` → :class:`torch.nn.Linear`)
76
73
  - final Linear to classes.
@@ -15,84 +15,12 @@ from braindecode.modules import DepthwiseConv2d, Ensure4d, InceptionBlock
15
15
  class EEGInceptionERP(EEGModuleMixin, nn.Sequential):
16
16
  """EEG Inception for ERP-based from Santamaria-Vazquez et al (2020) [santamaria2020]_.
17
17
 
18
- :bdg-success:`Convolution`
19
-
20
18
  .. figure:: https://braindecode.org/dev/_static/model/eeginceptionerp.jpg
21
19
  :align: center
22
20
  :alt: EEGInceptionERP Architecture
23
21
 
24
- Figure: Overview of EEG-Inception architecture. 2D convolution blocks and depthwise 2D convolution blocks include batch normalization, activation and dropout regularization. The kernel size is displayed for convolutional and average pooling layers.
25
-
26
- .. rubric:: Architectural Overview
27
-
28
- A two-stage, multi-scale CNN tailored to ERP detection from short (0-1000 ms) single-trial epochs. Signals are mapped through
29
- * (i) :class:`_InceptionModule1` multi-scale temporal feature extraction plus per-branch spatial mixing;
30
- * (ii) :class:`_InceptionModule2` deeper multi-scale refinement at a reduced temporal resolution; and
31
- * (iii) :class:`_OutputModule` compact aggregation and linear readout.
32
-
33
- .. rubric:: Macro Components
34
-
35
- - :class:`_InceptionModule1` **(multi-scale temporal + spatial mixing)**
36
-
37
- - *Operations.*
38
- - `EEGInceptionERP.c1`: :class:`torch.nn.Conv2d` ``k=(64,1)``, stride ``(1,1)``, *same* pad on input reshaped to ``(B,1,128,8)`` → BN → activation → dropout.
39
- - `EEGInceptionERP.d1`: :class:`torch.nn.Conv2d` (depthwise) ``k=(1,8)``, *valid* pad over channels → BN → activation → dropout.
40
- - `EEGInceptionERP.c2`: :class:`torch.nn.Conv2d` ``k=(32,1)`` → BN → activation → dropout; then `EEGInceptionERP.d2` depthwise ``k=(1,8)`` → BN → activation → dropout.
41
- - `EEGInceptionERP.c3`: :class:`torch.nn.Conv2d` ``k=(16,1)`` → BN → activation → dropout; then `EEGInceptionERP.d3` depthwise ``k=(1,8)`` → BN → activation → dropout.
42
- - `EEGInceptionERP.n1`: :class:`torch.nn.Concat` over branch features.
43
- - `EEGInceptionERP.a1`: :class:`torch.nn.AvgPool2d` ``pool=(4,1)``, stride ``(4,1)`` for temporal downsampling.
44
-
45
- *Interpretability/robustness.* Depthwise `1 x n_chans` layers act as learnable montage-wide spatial filters per temporal scale; pooling stabilizes against jitter.
46
-
47
- - :class:`_InceptionModule2` **(refinement at coarser timebase)**
48
-
49
- - *Operations.*
50
- - `EEGInceptionERP.c4`: :class:`torch.nn.Conv2d` ``k=(16,1)`` → BN → activation → dropout.
51
- - `EEGInceptionERP.c5`: :class:`torch.nn.Conv2d` ``k=(8,1)`` → BN → activation → dropout.
52
- - `EEGInceptionERP.c6`: :class:`torch.nn.Conv2d` ``k=(4,1)`` → BN → activation → dropout.
53
- - `EEGInceptionERP.n2`: :class:`torch.nn.Concat` (merge C4-C6 outputs).
54
- - `EEGInceptionERP.a2`: :class:`torch.nn.AvgPool2d` ``pool=(2,1)``, stride ``(2,1)``.
55
- - `EEGInceptionERP.c7`: :class:`torch.nn.Conv2d` ``k=(8,1)`` → BN → activation → dropout; then `EEGInceptionERP.a3`: :class:`torch.nn.AvgPool2d` ``pool=(2,1)``.
56
- - `EEGInceptionERP.c8`: :class:`torch.nn.Conv2d` ``k=(4,1)`` → BN → activation → dropout; then `EEGInceptionERP.a4`: :class:`torch.nn.AvgPool2d` ``pool=(2,1)``.
57
-
58
- *Role.* Adds higher-level, shorter-window evidence while progressively compressing temporal dimension.
59
-
60
- - :class:`_OutputModule` **(aggregation + readout)**
61
-
62
- - *Operations.*
63
- - :class:`torch.nn.Flatten`
64
- - :class:`torch.nn.Linear` ``(features → 2)``
65
-
66
- .. rubric:: Convolutional Details
67
-
68
- - **Temporal (where time-domain patterns are learned).**
69
- First module uses 1D temporal kernels along the 128-sample axis: ``64``, ``32``, ``16``
70
- (≈500, 250, 125 ms at 128 Hz). After ``pool=(4,1)``, the second module applies ``16``,
71
- ``8``, ``4`` (≈125, 62.5, 31.25 ms at the pooled rate). All strides are ``1`` in convs;
72
- temporal resolution changes only via average pooling.
73
-
74
- - **Spatial (how electrodes are processed).**
75
- Depthwise convs with ``k=(1,8)`` span all channels and are applied **per temporal branch**,
76
- yielding scale-specific channel projections (no cross-branch mixing until concatenation).
77
- There is no full 2D mixing kernel; spatial mixing is factorized and lightweight.
78
-
79
- - **Spectral (how frequency information is captured).**
80
- No explicit transform; multiple temporal kernels form a *learned filter bank* over
81
- ERP-relevant bands. Successive pooling acts as low-pass integration to emphasize sustained
82
- post-stimulus components.
83
-
84
- .. rubric:: Additional Mechanisms
85
-
86
- - Every conv/depthwise block includes **BatchNorm**, nonlinearity (paper used grid-searched activation), and **dropout**.
87
- - Two Inception stages followed by short convs and pooling keep parameters small (≈15k reported) while preserving multi-scale evidence.
88
- - Expected input: epochs of shape ``(B,1,128,8)`` (time x channels as a 2D map) or reshaped from ``(B,8,128)`` with an added singleton feature dimension.
89
-
90
- .. rubric:: Usage and Configuration
91
-
92
- - **Key knobs.** Number of filters per branch; kernel lengths in both Inception modules; depthwise kernel over channels (typically ``n_chans``); pooling lengths/strides; dropout rate; choice of activation.
93
- - **Training tips.** Use 0-1000 ms windows at 128 Hz with CAR; tune activation and dropout (they strongly affect performance); early-stop on validation loss when overfitting emerges.
94
-
95
- .. rubric:: Implementation Details
22
+ The code for the paper and this model is also available at [santamaria2020]_
23
+ and an adaptation for PyTorch [2]_.
96
24
 
97
25
  The model is strongly based on the original InceptionNet for an image. The main goal is
98
26
  to extract features in parallel with different scales. The authors extracted three scales
@@ -105,9 +33,12 @@ class EEGInceptionERP(EEGModuleMixin, nn.Sequential):
105
33
  The winners of BEETL Competition/NeurIps 2021 used parts of the
106
34
  model [beetl]_.
107
35
 
108
- The code for the paper and this model is also available at [santamaria2020]_
109
- and an adaptation for PyTorch [2]_.
36
+ The model is fully described in [santamaria2020]_.
110
37
 
38
+ Notes
39
+ -----
40
+ This implementation is not guaranteed to be correct, has not been checked
41
+ by original authors, only reimplemented from the paper based on [2]_.
111
42
 
112
43
  Parameters
113
44
  ----------
@@ -13,8 +13,6 @@ from braindecode.modules import Ensure4d
13
13
  class EEGInceptionMI(EEGModuleMixin, nn.Module):
14
14
  """EEG Inception for Motor Imagery, as proposed in Zhang et al. (2021) [1]_
15
15
 
16
- :bdg-success:`Convolution`
17
-
18
16
  .. figure:: https://content.cld.iop.org/journals/1741-2552/18/4/046014/revision3/jneabed81f1_hr.jpg
19
17
  :align: center
20
18
  :alt: EEGInceptionMI Architecture