braindecode 0.8__tar.gz → 1.0.0__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.

Potentially problematic release.


This version of braindecode might be problematic. Click here for more details.

Files changed (415) hide show
  1. {braindecode-0.8 → braindecode-1.0.0}/LICENSE.txt +1 -1
  2. {braindecode-0.8 → braindecode-1.0.0}/MANIFEST.in +3 -0
  3. braindecode-1.0.0/NOTICE.txt +20 -0
  4. {braindecode-0.8/braindecode.egg-info → braindecode-1.0.0}/PKG-INFO +22 -38
  5. {braindecode-0.8 → braindecode-1.0.0}/README.rst +10 -34
  6. {braindecode-0.8 → braindecode-1.0.0}/braindecode/__init__.py +1 -2
  7. braindecode-1.0.0/braindecode/augmentation/__init__.py +50 -0
  8. braindecode-1.0.0/braindecode/augmentation/base.py +222 -0
  9. braindecode-1.0.0/braindecode/augmentation/functional.py +1096 -0
  10. braindecode-1.0.0/braindecode/augmentation/transforms.py +1274 -0
  11. {braindecode-0.8 → braindecode-1.0.0}/braindecode/classifier.py +26 -24
  12. braindecode-1.0.0/braindecode/datasets/__init__.py +34 -0
  13. braindecode-1.0.0/braindecode/datasets/base.py +840 -0
  14. braindecode-1.0.0/braindecode/datasets/bbci.py +694 -0
  15. braindecode-1.0.0/braindecode/datasets/bcicomp.py +194 -0
  16. braindecode-1.0.0/braindecode/datasets/bids.py +245 -0
  17. braindecode-1.0.0/braindecode/datasets/mne.py +172 -0
  18. braindecode-1.0.0/braindecode/datasets/moabb.py +209 -0
  19. braindecode-1.0.0/braindecode/datasets/nmt.py +311 -0
  20. braindecode-1.0.0/braindecode/datasets/sleep_physio_challe_18.py +412 -0
  21. braindecode-1.0.0/braindecode/datasets/sleep_physionet.py +125 -0
  22. braindecode-1.0.0/braindecode/datasets/tuh.py +588 -0
  23. braindecode-1.0.0/braindecode/datasets/xy.py +95 -0
  24. braindecode-1.0.0/braindecode/datautil/__init__.py +49 -0
  25. braindecode-1.0.0/braindecode/datautil/serialization.py +342 -0
  26. braindecode-1.0.0/braindecode/datautil/util.py +41 -0
  27. {braindecode-0.8 → braindecode-1.0.0}/braindecode/eegneuralnet.py +63 -47
  28. braindecode-1.0.0/braindecode/functional/__init__.py +10 -0
  29. braindecode-1.0.0/braindecode/functional/functions.py +251 -0
  30. braindecode-1.0.0/braindecode/functional/initialization.py +47 -0
  31. braindecode-1.0.0/braindecode/models/__init__.py +52 -0
  32. braindecode-1.0.0/braindecode/models/atcnet.py +652 -0
  33. braindecode-1.0.0/braindecode/models/attentionbasenet.py +550 -0
  34. braindecode-1.0.0/braindecode/models/base.py +296 -0
  35. braindecode-1.0.0/braindecode/models/biot.py +483 -0
  36. braindecode-1.0.0/braindecode/models/contrawr.py +296 -0
  37. braindecode-1.0.0/braindecode/models/ctnet.py +450 -0
  38. braindecode-1.0.0/braindecode/models/deep4.py +322 -0
  39. braindecode-1.0.0/braindecode/models/deepsleepnet.py +295 -0
  40. braindecode-1.0.0/braindecode/models/eegconformer.py +372 -0
  41. braindecode-1.0.0/braindecode/models/eeginception_erp.py +304 -0
  42. braindecode-1.0.0/braindecode/models/eeginception_mi.py +371 -0
  43. braindecode-1.0.0/braindecode/models/eegitnet.py +301 -0
  44. braindecode-1.0.0/braindecode/models/eegminer.py +255 -0
  45. braindecode-1.0.0/braindecode/models/eegnet.py +473 -0
  46. braindecode-1.0.0/braindecode/models/eegnex.py +247 -0
  47. braindecode-1.0.0/braindecode/models/eegresnet.py +362 -0
  48. braindecode-1.0.0/braindecode/models/eegsimpleconv.py +199 -0
  49. braindecode-1.0.0/braindecode/models/eegtcnet.py +335 -0
  50. braindecode-1.0.0/braindecode/models/fbcnet.py +221 -0
  51. braindecode-1.0.0/braindecode/models/fblightconvnet.py +313 -0
  52. braindecode-1.0.0/braindecode/models/fbmsnet.py +325 -0
  53. braindecode-1.0.0/braindecode/models/hybrid.py +126 -0
  54. braindecode-1.0.0/braindecode/models/ifnet.py +441 -0
  55. braindecode-1.0.0/braindecode/models/labram.py +1166 -0
  56. braindecode-1.0.0/braindecode/models/msvtnet.py +375 -0
  57. braindecode-1.0.0/braindecode/models/sccnet.py +182 -0
  58. braindecode-1.0.0/braindecode/models/shallow_fbcsp.py +208 -0
  59. braindecode-1.0.0/braindecode/models/signal_jepa.py +1012 -0
  60. braindecode-1.0.0/braindecode/models/sinc_shallow.py +337 -0
  61. braindecode-1.0.0/braindecode/models/sleep_stager_blanco_2020.py +167 -0
  62. braindecode-1.0.0/braindecode/models/sleep_stager_chambon_2018.py +157 -0
  63. braindecode-1.0.0/braindecode/models/sleep_stager_eldele_2021.py +536 -0
  64. braindecode-1.0.0/braindecode/models/sparcnet.py +378 -0
  65. braindecode-1.0.0/braindecode/models/summary.csv +41 -0
  66. braindecode-1.0.0/braindecode/models/syncnet.py +232 -0
  67. braindecode-1.0.0/braindecode/models/tcn.py +273 -0
  68. braindecode-1.0.0/braindecode/models/tidnet.py +395 -0
  69. braindecode-1.0.0/braindecode/models/tsinception.py +258 -0
  70. braindecode-1.0.0/braindecode/models/usleep.py +340 -0
  71. braindecode-1.0.0/braindecode/models/util.py +133 -0
  72. braindecode-1.0.0/braindecode/modules/__init__.py +38 -0
  73. braindecode-1.0.0/braindecode/modules/activation.py +60 -0
  74. braindecode-1.0.0/braindecode/modules/attention.py +757 -0
  75. braindecode-1.0.0/braindecode/modules/blocks.py +108 -0
  76. braindecode-1.0.0/braindecode/modules/convolution.py +274 -0
  77. braindecode-1.0.0/braindecode/modules/filter.py +632 -0
  78. braindecode-1.0.0/braindecode/modules/layers.py +133 -0
  79. braindecode-1.0.0/braindecode/modules/linear.py +50 -0
  80. braindecode-1.0.0/braindecode/modules/parametrization.py +38 -0
  81. braindecode-1.0.0/braindecode/modules/stats.py +77 -0
  82. braindecode-1.0.0/braindecode/modules/util.py +77 -0
  83. braindecode-1.0.0/braindecode/modules/wrapper.py +75 -0
  84. braindecode-1.0.0/braindecode/preprocessing/__init__.py +37 -0
  85. braindecode-1.0.0/braindecode/preprocessing/mne_preprocess.py +77 -0
  86. braindecode-1.0.0/braindecode/preprocessing/preprocess.py +478 -0
  87. braindecode-1.0.0/braindecode/preprocessing/windowers.py +1031 -0
  88. {braindecode-0.8 → braindecode-1.0.0}/braindecode/regressor.py +23 -12
  89. braindecode-1.0.0/braindecode/samplers/__init__.py +18 -0
  90. braindecode-1.0.0/braindecode/samplers/base.py +401 -0
  91. braindecode-1.0.0/braindecode/samplers/ssl.py +263 -0
  92. braindecode-1.0.0/braindecode/training/__init__.py +23 -0
  93. braindecode-1.0.0/braindecode/training/callbacks.py +23 -0
  94. braindecode-1.0.0/braindecode/training/losses.py +105 -0
  95. braindecode-1.0.0/braindecode/training/scoring.py +483 -0
  96. {braindecode-0.8 → braindecode-1.0.0}/braindecode/util.py +55 -59
  97. braindecode-1.0.0/braindecode/version.py +1 -0
  98. braindecode-1.0.0/braindecode/visualization/__init__.py +8 -0
  99. braindecode-1.0.0/braindecode/visualization/confusion_matrices.py +289 -0
  100. braindecode-1.0.0/braindecode/visualization/gradients.py +57 -0
  101. {braindecode-0.8 → braindecode-1.0.0/braindecode.egg-info}/PKG-INFO +22 -38
  102. {braindecode-0.8 → braindecode-1.0.0}/braindecode.egg-info/SOURCES.txt +184 -6
  103. {braindecode-0.8 → braindecode-1.0.0}/braindecode.egg-info/requires.txt +9 -2
  104. {braindecode-0.8 → braindecode-1.0.0}/docs/Makefile +6 -1
  105. {braindecode-0.8/docs/auto_examples/applied_examples → braindecode-1.0.0/docs/_build/html/_downloads/090305d06248840b75133975e5121f41}/plot_sleep_staging_chambon2018.ipynb +14 -14
  106. braindecode-1.0.0/docs/_build/html/_downloads/0f2bf063e08b7d05b80e0004fcbbb6f9/benchmark_lazy_eager_loading.ipynb +183 -0
  107. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/10fc813a8f78253f4bf301264950f5c1/plot_bcic_iv_4_ecog_cropped.ipynb +27 -20
  108. {braindecode-0.8/docs/auto_examples/datasets_io → braindecode-1.0.0/docs/_build/html/_downloads/1c6590d134fa0befda654e89aa55b2ac}/plot_benchmark_preprocessing.ipynb +6 -6
  109. {braindecode-0.8/docs/auto_examples/advanced_training → braindecode-1.0.0/docs/_build/html/_downloads/1d879df548fa18be8c23d9ca0dc008d4}/plot_data_augmentation.ipynb +12 -12
  110. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/2466f8ec5c733d0bd65e187b45d875cc/plot_data_augmentation_search.ipynb +14 -14
  111. {braindecode-0.8/docs/auto_examples/model_building → braindecode-1.0.0/docs/_build/html/_downloads/263464a28477cf8decb861ae6e2e9be7}/plot_how_train_test_and_tune.ipynb +20 -20
  112. braindecode-1.0.0/docs/_build/html/_downloads/3862cafd7f0d815e434319ffe525afc8/plot_bcic_iv_2a_moabb_cropped.ipynb +226 -0
  113. braindecode-1.0.0/docs/_build/html/_downloads/408ca4ffd0ea1f76faa9ef602734ac94/plot_tuh_eeg_corpus.ipynb +187 -0
  114. braindecode-1.0.0/docs/_build/html/_downloads/5030717acb00990b394b83314b0797d9/plot_bids_dataset_example.ipynb +97 -0
  115. braindecode-1.0.0/docs/_build/html/_downloads/75a73c7d94f3a671fd3dec28f4031ead/plot_regression.ipynb +212 -0
  116. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/84fbcd59a346e5e56758285122dc69e2/plot_sleep_staging_eldele2021.ipynb +14 -14
  117. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/8616a7f968141825e56ab3e3d59be449/plot_tuh_discrete_multitarget.ipynb +12 -12
  118. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/8b5ba06718764b959e8dea1dd0bb97df/plot_sleep_staging_usleep.ipynb +14 -14
  119. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/91651c9d4fde110b4a53f5775a91acc5/plot_mne_dataset_example.ipynb +6 -6
  120. braindecode-1.0.0/docs/_build/html/_downloads/93fdea8cbadaf0e3afa2eb2be3ebc483/bcic_iv_4_ecog_trial.ipynb +376 -0
  121. {braindecode-0.8/docs/auto_examples/model_building → braindecode-1.0.0/docs/_build/html/_downloads/9a4447462c3b255ba7e5ca212bbadd52}/plot_bcic_iv_2a_moabb_trial.ipynb +15 -15
  122. braindecode-1.0.0/docs/_build/html/_downloads/a2f12129facb042643a99d4b9de1886d/bcic_iv_4_ecog_cropped.ipynb +345 -0
  123. braindecode-1.0.0/docs/_build/html/_downloads/a39e4245738e55e0eb7084c545ed05bc/plot_hyperparameter_tuning_with_scikit-learn.ipynb +257 -0
  124. {braindecode-0.8/docs/auto_examples/datasets_io → braindecode-1.0.0/docs/_build/html/_downloads/a6249715d3c30cb41c4af85938cca008}/plot_moabb_dataset_example.ipynb +5 -5
  125. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/a7ccc5c1d1d2775e08c053bb25c81a91/plot_bcic_iv_4_ecog_trial.ipynb +26 -19
  126. {braindecode-0.8/docs/auto_examples/model_building → braindecode-1.0.0/docs/_build/html/_downloads/a86d0c5f3a882a069df1683a708d3e25}/plot_train_in_pure_pytorch_and_pytorch_lightning.ipynb +18 -11
  127. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/aa8426d97090e7b3062c4e4732c3214a/plot_relative_positioning.ipynb +14 -14
  128. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/b9d19304ecd233ea7a79d4365316ea49/plot_load_save_datasets.ipynb +11 -4
  129. {braindecode-0.8/docs/auto_examples/datasets_io → braindecode-1.0.0/docs/_build/html/_downloads/f3c89d39e947a121c7920b4d415413a2}/plot_split_dataset.ipynb +4 -4
  130. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/f7b38cac92c078838442753121efc297/plot_custom_dataset_example.ipynb +11 -4
  131. {braindecode-0.8 → braindecode-1.0.0}/docs/_build/html/_downloads/fff46913db5173d3ae22c1113acffb45/plot_basic_training_epochs.ipynb +11 -11
  132. braindecode-1.0.0/docs/api.rst +566 -0
  133. braindecode-1.0.0/docs/auto_examples/advanced_training/bcic_iv_4_ecog_cropped.ipynb +345 -0
  134. braindecode-1.0.0/docs/auto_examples/advanced_training/bcic_iv_4_ecog_cropped.rst +626 -0
  135. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/advanced_training/index.rst +10 -7
  136. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/advanced_training/plot_bcic_iv_4_ecog_cropped.ipynb +27 -20
  137. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/advanced_training/plot_bcic_iv_4_ecog_cropped.rst +197 -292
  138. {braindecode-0.8/docs/_build/html/_downloads/1d879df548fa18be8c23d9ca0dc008d4 → braindecode-1.0.0/docs/auto_examples/advanced_training}/plot_data_augmentation.ipynb +12 -12
  139. braindecode-1.0.0/docs/auto_examples/advanced_training/plot_data_augmentation.rst +999 -0
  140. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/advanced_training/plot_data_augmentation_search.ipynb +14 -14
  141. braindecode-1.0.0/docs/auto_examples/advanced_training/plot_data_augmentation_search.rst +1137 -0
  142. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/advanced_training/plot_relative_positioning.ipynb +14 -14
  143. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/advanced_training/plot_relative_positioning.rst +244 -208
  144. braindecode-1.0.0/docs/auto_examples/advanced_training/sg_execution_times.rst +46 -0
  145. braindecode-1.0.0/docs/auto_examples/applied_examples/bcic_iv_4_ecog_trial.ipynb +376 -0
  146. braindecode-1.0.0/docs/auto_examples/applied_examples/bcic_iv_4_ecog_trial.rst +581 -0
  147. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/applied_examples/index.rst +11 -8
  148. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/applied_examples/plot_bcic_iv_4_ecog_trial.ipynb +26 -19
  149. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/applied_examples/plot_bcic_iv_4_ecog_trial.rst +197 -270
  150. {braindecode-0.8/docs/_build/html/_downloads/090305d06248840b75133975e5121f41 → braindecode-1.0.0/docs/auto_examples/applied_examples}/plot_sleep_staging_chambon2018.ipynb +14 -14
  151. braindecode-1.0.0/docs/auto_examples/applied_examples/plot_sleep_staging_chambon2018.rst +1192 -0
  152. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.ipynb +14 -14
  153. braindecode-1.0.0/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.rst +1399 -0
  154. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.ipynb +14 -14
  155. braindecode-1.0.0/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.rst +1252 -0
  156. braindecode-1.0.0/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.ipynb +187 -0
  157. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.rst +161 -131
  158. braindecode-1.0.0/docs/auto_examples/applied_examples/sg_execution_times.rst +49 -0
  159. braindecode-1.0.0/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.ipynb +183 -0
  160. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.rst +177 -108
  161. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/index.rst +26 -5
  162. {braindecode-0.8/docs/_build/html/_downloads/1c6590d134fa0befda654e89aa55b2ac → braindecode-1.0.0/docs/auto_examples/datasets_io}/plot_benchmark_preprocessing.ipynb +6 -6
  163. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_benchmark_preprocessing.rst +178 -193
  164. braindecode-1.0.0/docs/auto_examples/datasets_io/plot_bids_dataset_example.ipynb +97 -0
  165. braindecode-1.0.0/docs/auto_examples/datasets_io/plot_bids_dataset_example.rst +818 -0
  166. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_custom_dataset_example.ipynb +11 -4
  167. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_custom_dataset_example.rst +48 -47
  168. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_load_save_datasets.ipynb +11 -4
  169. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_load_save_datasets.rst +130 -129
  170. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_mne_dataset_example.ipynb +6 -6
  171. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_mne_dataset_example.rst +40 -34
  172. {braindecode-0.8/docs/_build/html/_downloads/a6249715d3c30cb41c4af85938cca008 → braindecode-1.0.0/docs/auto_examples/datasets_io}/plot_moabb_dataset_example.ipynb +5 -5
  173. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_moabb_dataset_example.rst +107 -102
  174. {braindecode-0.8/docs/_build/html/_downloads/f3c89d39e947a121c7920b4d415413a2 → braindecode-1.0.0/docs/auto_examples/datasets_io}/plot_split_dataset.ipynb +4 -4
  175. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_split_dataset.rst +49 -44
  176. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_tuh_discrete_multitarget.ipynb +12 -12
  177. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/datasets_io/plot_tuh_discrete_multitarget.rst +59 -43
  178. braindecode-1.0.0/docs/auto_examples/datasets_io/sg_execution_times.rst +61 -0
  179. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/index.rst +56 -24
  180. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/index.rst +9 -6
  181. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/plot_basic_training_epochs.ipynb +11 -11
  182. braindecode-1.0.0/docs/auto_examples/model_building/plot_basic_training_epochs.rst +1682 -0
  183. braindecode-1.0.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.ipynb +226 -0
  184. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.rst +127 -116
  185. {braindecode-0.8/docs/_build/html/_downloads/9a4447462c3b255ba7e5ca212bbadd52 → braindecode-1.0.0/docs/auto_examples/model_building}/plot_bcic_iv_2a_moabb_trial.ipynb +15 -15
  186. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_trial.rst +145 -130
  187. {braindecode-0.8/docs/_build/html/_downloads/263464a28477cf8decb861ae6e2e9be7 → braindecode-1.0.0/docs/auto_examples/model_building}/plot_how_train_test_and_tune.ipynb +20 -20
  188. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/plot_how_train_test_and_tune.rst +235 -175
  189. braindecode-1.0.0/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.ipynb +257 -0
  190. braindecode-1.0.0/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.rst +698 -0
  191. braindecode-1.0.0/docs/auto_examples/model_building/plot_regression.ipynb +212 -0
  192. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/plot_regression.rst +129 -124
  193. {braindecode-0.8/docs/_build/html/_downloads/a86d0c5f3a882a069df1683a708d3e25 → braindecode-1.0.0/docs/auto_examples/model_building}/plot_train_in_pure_pytorch_and_pytorch_lightning.ipynb +18 -11
  194. {braindecode-0.8 → braindecode-1.0.0}/docs/auto_examples/model_building/plot_train_in_pure_pytorch_and_pytorch_lightning.rst +152 -143
  195. braindecode-1.0.0/docs/auto_examples/model_building/sg_execution_times.rst +55 -0
  196. braindecode-1.0.0/docs/auto_examples/sg_execution_times.rst +37 -0
  197. {braindecode-0.8 → braindecode-1.0.0}/docs/conf.py +161 -125
  198. braindecode-1.0.0/docs/generated/activation/braindecode.modules.LogActivation.rst +130 -0
  199. braindecode-1.0.0/docs/generated/activation/braindecode.modules.SafeLog.rst +135 -0
  200. braindecode-0.8/docs/generated/braindecode.models.TCN.rst → braindecode-1.0.0/docs/generated/attention/braindecode.modules.CAT.rst +9 -5
  201. braindecode-1.0.0/docs/generated/attention/braindecode.modules.CATLite.rst +130 -0
  202. braindecode-1.0.0/docs/generated/attention/braindecode.modules.CBAM.rst +130 -0
  203. braindecode-1.0.0/docs/generated/attention/braindecode.modules.ECA.rst +130 -0
  204. braindecode-1.0.0/docs/generated/attention/braindecode.modules.EncNet.rst +130 -0
  205. braindecode-1.0.0/docs/generated/attention/braindecode.modules.FCA.rst +137 -0
  206. braindecode-1.0.0/docs/generated/attention/braindecode.modules.GCT.rst +130 -0
  207. braindecode-1.0.0/docs/generated/attention/braindecode.modules.GSoP.rst +130 -0
  208. braindecode-1.0.0/docs/generated/attention/braindecode.modules.GatherExcite.rst +130 -0
  209. braindecode-1.0.0/docs/generated/attention/braindecode.modules.MultiHeadAttention.rst +130 -0
  210. braindecode-1.0.0/docs/generated/attention/braindecode.modules.SRM.rst +130 -0
  211. braindecode-1.0.0/docs/generated/attention/braindecode.modules.SqueezeAndExcitation.rst +130 -0
  212. braindecode-1.0.0/docs/generated/blocks/braindecode.modules.FeedForwardBlock.rst +127 -0
  213. braindecode-0.8/docs/generated/braindecode.models.TimeDistributed.rst → braindecode-1.0.0/docs/generated/blocks/braindecode.modules.InceptionBlock.rst +14 -4
  214. braindecode-1.0.0/docs/generated/blocks/braindecode.modules.MLP.rst +127 -0
  215. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.BandstopFilter.rst +10 -0
  216. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.ChannelsDropout.rst +10 -0
  217. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.ChannelsShuffle.rst +10 -0
  218. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.ChannelsSymmetry.rst +10 -0
  219. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.Compose.rst +10 -0
  220. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.FTSurrogate.rst +10 -0
  221. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.FrequencyShift.rst +10 -0
  222. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.GaussianNoise.rst +10 -0
  223. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.IdentityTransform.rst +10 -0
  224. braindecode-1.0.0/docs/generated/braindecode.augmentation.MaskEncoding.rst +139 -0
  225. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.Mixup.rst +10 -0
  226. braindecode-1.0.0/docs/generated/braindecode.augmentation.SegmentationReconstruction.rst +139 -0
  227. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.SensorsRotation.rst +10 -0
  228. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.SensorsXRotation.rst +10 -0
  229. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.SensorsYRotation.rst +10 -0
  230. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.SensorsZRotation.rst +10 -0
  231. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.SignFlip.rst +10 -0
  232. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.SmoothTimeMask.rst +10 -0
  233. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.TimeReverse.rst +10 -0
  234. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.Transform.rst +10 -0
  235. braindecode-1.0.0/docs/generated/braindecode.augmentation.functional.mask_encoding.rst +12 -0
  236. braindecode-1.0.0/docs/generated/braindecode.augmentation.functional.segmentation_reconstruction.rst +12 -0
  237. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.classifier.EEGClassifier.rst +16 -0
  238. braindecode-1.0.0/docs/generated/braindecode.datasets.BIDSDataset.rst +29 -0
  239. braindecode-1.0.0/docs/generated/braindecode.datasets.BIDSEpochsDataset.rst +29 -0
  240. braindecode-1.0.0/docs/generated/braindecode.datasets.NMT.rst +29 -0
  241. braindecode-1.0.0/docs/generated/braindecode.datasets.SleepPhysionetChallenge2018.rst +29 -0
  242. braindecode-1.0.0/docs/generated/braindecode.functional.drop_path.rst +12 -0
  243. braindecode-1.0.0/docs/generated/braindecode.functional.glorot_weight_zero_bias.rst +12 -0
  244. braindecode-1.0.0/docs/generated/braindecode.functional.hilbert_freq.rst +12 -0
  245. braindecode-1.0.0/docs/generated/braindecode.functional.identity.rst +12 -0
  246. braindecode-1.0.0/docs/generated/braindecode.functional.plv_time.rst +12 -0
  247. braindecode-1.0.0/docs/generated/braindecode.functional.rescale_parameter.rst +12 -0
  248. braindecode-1.0.0/docs/generated/braindecode.functional.safe_log.rst +12 -0
  249. braindecode-1.0.0/docs/generated/braindecode.functional.square.rst +12 -0
  250. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.ATCNet.rst +10 -0
  251. braindecode-1.0.0/docs/generated/braindecode.models.AttentionBaseNet.rst +136 -0
  252. braindecode-1.0.0/docs/generated/braindecode.models.BDTCN.rst +136 -0
  253. braindecode-1.0.0/docs/generated/braindecode.models.BIOT.rst +136 -0
  254. braindecode-1.0.0/docs/generated/braindecode.models.CTNet.rst +136 -0
  255. braindecode-1.0.0/docs/generated/braindecode.models.ContraWR.rst +136 -0
  256. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.Deep4Net.rst +10 -0
  257. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.DeepSleepNet.rst +10 -0
  258. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGConformer.rst +10 -0
  259. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGITNet.rst +10 -0
  260. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGInceptionERP.rst +10 -0
  261. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGInceptionMI.rst +10 -0
  262. braindecode-1.0.0/docs/generated/braindecode.models.EEGMiner.rst +136 -0
  263. braindecode-1.0.0/docs/generated/braindecode.models.EEGNeX.rst +136 -0
  264. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGNetv1.rst +10 -0
  265. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGNetv4.rst +10 -0
  266. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGResNet.rst +10 -0
  267. braindecode-1.0.0/docs/generated/braindecode.models.EEGSimpleConv.rst +136 -0
  268. braindecode-1.0.0/docs/generated/braindecode.models.EEGTCNet.rst +136 -0
  269. braindecode-1.0.0/docs/generated/braindecode.models.FBCNet.rst +136 -0
  270. braindecode-1.0.0/docs/generated/braindecode.models.FBLightConvNet.rst +136 -0
  271. braindecode-1.0.0/docs/generated/braindecode.models.FBMSNet.rst +136 -0
  272. braindecode-1.0.0/docs/generated/braindecode.models.IFNet.rst +136 -0
  273. braindecode-1.0.0/docs/generated/braindecode.models.Labram.rst +171 -0
  274. braindecode-1.0.0/docs/generated/braindecode.models.MSVTNet.rst +136 -0
  275. braindecode-1.0.0/docs/generated/braindecode.models.SCCNet.rst +136 -0
  276. braindecode-1.0.0/docs/generated/braindecode.models.SPARCNet.rst +136 -0
  277. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.ShallowFBCSPNet.rst +10 -0
  278. braindecode-1.0.0/docs/generated/braindecode.models.SignalJEPA.rst +136 -0
  279. braindecode-1.0.0/docs/generated/braindecode.models.SignalJEPA_Contextual.rst +143 -0
  280. braindecode-1.0.0/docs/generated/braindecode.models.SignalJEPA_PostLocal.rst +143 -0
  281. braindecode-1.0.0/docs/generated/braindecode.models.SignalJEPA_PreLocal.rst +143 -0
  282. braindecode-1.0.0/docs/generated/braindecode.models.SincShallowNet.rst +136 -0
  283. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.SleepStagerBlanco2020.rst +10 -0
  284. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.SleepStagerChambon2018.rst +10 -0
  285. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.SleepStagerEldele2021.rst +10 -0
  286. braindecode-1.0.0/docs/generated/braindecode.models.SyncNet.rst +136 -0
  287. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.TIDNet.rst +10 -0
  288. braindecode-1.0.0/docs/generated/braindecode.models.TSceptionV1.rst +136 -0
  289. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.USleep.rst +10 -0
  290. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.regressor.EEGRegressor.rst +16 -0
  291. braindecode-1.0.0/docs/generated/braindecode.samplers.DistributedRecordingSampler.rst +41 -0
  292. braindecode-1.0.0/docs/generated/braindecode.samplers.DistributedRelativePositioningSampler.rst +38 -0
  293. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.CroppedLoss.rst +10 -0
  294. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.TimeSeriesLoss.rst +10 -0
  295. braindecode-1.0.0/docs/generated/convolution/braindecode.modules.AvgPool2dWithConv.rst +130 -0
  296. braindecode-1.0.0/docs/generated/convolution/braindecode.modules.CausalConv1d.rst +132 -0
  297. braindecode-1.0.0/docs/generated/convolution/braindecode.modules.CombinedConv.rst +130 -0
  298. braindecode-1.0.0/docs/generated/convolution/braindecode.modules.Conv2dWithConstraint.rst +121 -0
  299. braindecode-0.8/docs/generated/braindecode.models.EEGInception.rst → braindecode-1.0.0/docs/generated/convolution/braindecode.modules.DepthwiseConv2d.rst +5 -7
  300. braindecode-1.0.0/docs/generated/filter/braindecode.modules.FilterBankLayer.rst +130 -0
  301. braindecode-1.0.0/docs/generated/filter/braindecode.modules.GeneralizedGaussianFilter.rst +144 -0
  302. braindecode-1.0.0/docs/generated/layers/braindecode.modules.Chomp1d.rst +135 -0
  303. braindecode-1.0.0/docs/generated/layers/braindecode.modules.DropPath.rst +135 -0
  304. braindecode-0.8/docs/generated/braindecode.models.HybridNet.rst → braindecode-1.0.0/docs/generated/layers/braindecode.modules.Ensure4d.rst +8 -4
  305. braindecode-1.0.0/docs/generated/layers/braindecode.modules.TimeDistributed.rst +130 -0
  306. braindecode-1.0.0/docs/generated/linear/braindecode.modules.LinearWithConstraint.rst +121 -0
  307. braindecode-1.0.0/docs/generated/linear/braindecode.modules.MaxNormLinear.rst +121 -0
  308. braindecode-1.0.0/docs/generated/stats/braindecode.modules.LogPowerLayer.rst +6 -0
  309. braindecode-1.0.0/docs/generated/stats/braindecode.modules.LogVarLayer.rst +6 -0
  310. braindecode-1.0.0/docs/generated/stats/braindecode.modules.MaxLayer.rst +6 -0
  311. braindecode-1.0.0/docs/generated/stats/braindecode.modules.MeanLayer.rst +6 -0
  312. braindecode-1.0.0/docs/generated/stats/braindecode.modules.StatLayer.rst +130 -0
  313. braindecode-1.0.0/docs/generated/stats/braindecode.modules.StdLayer.rst +6 -0
  314. braindecode-1.0.0/docs/generated/stats/braindecode.modules.VarLayer.rst +6 -0
  315. braindecode-1.0.0/docs/generated/util/braindecode.modules.aggregate_probas.rst +12 -0
  316. braindecode-1.0.0/docs/generated/wrapper/braindecode.modules.Expression.rst +130 -0
  317. braindecode-1.0.0/docs/generated/wrapper/braindecode.modules.IntermediateOutputWrapper.rst +130 -0
  318. {braindecode-0.8 → braindecode-1.0.0}/docs/help.rst +7 -19
  319. {braindecode-0.8 → braindecode-1.0.0}/docs/index.rst +2 -1
  320. {braindecode-0.8 → braindecode-1.0.0}/docs/install/install.rst +5 -3
  321. {braindecode-0.8 → braindecode-1.0.0}/docs/install/install_pip.rst +6 -4
  322. {braindecode-0.8 → braindecode-1.0.0}/docs/install/install_source.rst +6 -4
  323. braindecode-1.0.0/docs/models_summary.rst +134 -0
  324. braindecode-1.0.0/docs/sg_execution_times.rst +109 -0
  325. {braindecode-0.8 → braindecode-1.0.0}/docs/whats_new.rst +118 -14
  326. braindecode-1.0.0/pyproject.toml +123 -0
  327. {braindecode-0.8 → braindecode-1.0.0}/setup.cfg +8 -0
  328. braindecode-0.8/braindecode/version.py +0 -1
  329. braindecode-0.8/docs/_build/html/_downloads/0f2bf063e08b7d05b80e0004fcbbb6f9/benchmark_lazy_eager_loading.ipynb +0 -183
  330. braindecode-0.8/docs/_build/html/_downloads/3862cafd7f0d815e434319ffe525afc8/plot_bcic_iv_2a_moabb_cropped.ipynb +0 -226
  331. braindecode-0.8/docs/_build/html/_downloads/408ca4ffd0ea1f76faa9ef602734ac94/plot_tuh_eeg_corpus.ipynb +0 -187
  332. braindecode-0.8/docs/_build/html/_downloads/75a73c7d94f3a671fd3dec28f4031ead/plot_regression.ipynb +0 -212
  333. braindecode-0.8/docs/_build/html/_downloads/a39e4245738e55e0eb7084c545ed05bc/plot_hyperparameter_tuning_with_scikit-learn.ipynb +0 -257
  334. braindecode-0.8/docs/api.rst +0 -256
  335. braindecode-0.8/docs/auto_examples/advanced_training/plot_data_augmentation.rst +0 -587
  336. braindecode-0.8/docs/auto_examples/advanced_training/plot_data_augmentation_search.rst +0 -720
  337. braindecode-0.8/docs/auto_examples/advanced_training/sg_execution_times.rst +0 -19
  338. braindecode-0.8/docs/auto_examples/applied_examples/plot_sleep_staging_chambon2018.rst +0 -697
  339. braindecode-0.8/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.rst +0 -793
  340. braindecode-0.8/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.rst +0 -711
  341. braindecode-0.8/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.ipynb +0 -187
  342. braindecode-0.8/docs/auto_examples/applied_examples/sg_execution_times.rst +0 -21
  343. braindecode-0.8/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.ipynb +0 -183
  344. braindecode-0.8/docs/auto_examples/datasets_io/sg_execution_times.rst +0 -27
  345. braindecode-0.8/docs/auto_examples/model_building/plot_basic_training_epochs.rst +0 -588
  346. braindecode-0.8/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.ipynb +0 -226
  347. braindecode-0.8/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.ipynb +0 -257
  348. braindecode-0.8/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.rst +0 -724
  349. braindecode-0.8/docs/auto_examples/model_building/plot_regression.ipynb +0 -212
  350. braindecode-0.8/docs/auto_examples/model_building/sg_execution_times.rst +0 -25
  351. braindecode-0.8/docs/generated/braindecode.models.get_output_shape.rst +0 -12
  352. braindecode-0.8/docs/generated/braindecode.preprocessing.scale.rst +0 -12
  353. braindecode-0.8/pyproject.toml +0 -95
  354. {braindecode-0.8 → braindecode-1.0.0}/braindecode.egg-info/dependency_links.txt +0 -0
  355. {braindecode-0.8 → braindecode-1.0.0}/braindecode.egg-info/top_level.txt +0 -0
  356. {braindecode-0.8 → braindecode-1.0.0}/docs/_templates/autosummary/class.rst +0 -0
  357. {braindecode-0.8 → braindecode-1.0.0}/docs/_templates/autosummary/function.rst +0 -0
  358. {braindecode-0.8 → braindecode-1.0.0}/docs/cite.rst +0 -0
  359. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.AugmentedDataLoader.rst +0 -0
  360. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.bandstop_filter.rst +0 -0
  361. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.channels_dropout.rst +0 -0
  362. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.channels_permute.rst +0 -0
  363. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.channels_shuffle.rst +0 -0
  364. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.frequency_shift.rst +0 -0
  365. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.ft_surrogate.rst +0 -0
  366. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.gaussian_noise.rst +0 -0
  367. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.identity.rst +0 -0
  368. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.mixup.rst +0 -0
  369. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.sensors_rotation.rst +0 -0
  370. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.sign_flip.rst +0 -0
  371. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.smooth_time_mask.rst +0 -0
  372. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.augmentation.functional.time_reverse.rst +0 -0
  373. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.BCICompetitionIVDataset4.rst +0 -0
  374. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.BNCI2014001.rst +0 -0
  375. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.BaseConcatDataset.rst +0 -0
  376. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.BaseDataset.rst +0 -0
  377. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.HGD.rst +0 -0
  378. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.MOABBDataset.rst +0 -0
  379. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.SleepPhysionet.rst +0 -0
  380. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.TUH.rst +0 -0
  381. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.TUHAbnormal.rst +0 -0
  382. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.WindowsDataset.rst +0 -0
  383. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.create_from_X_y.rst +0 -0
  384. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.create_from_mne_epochs.rst +0 -0
  385. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datasets.create_from_mne_raw.rst +0 -0
  386. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datautil.load_concat_dataset.rst +0 -0
  387. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.datautil.save_concat_dataset.rst +0 -0
  388. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.models.EEGModuleMixin.rst +0 -0
  389. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.Crop.rst +0 -0
  390. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.DropChannels.rst +0 -0
  391. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.Filter.rst +0 -0
  392. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.Pick.rst +0 -0
  393. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.Preprocessor.rst +0 -0
  394. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.Resample.rst +0 -0
  395. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.SetEEGReference.rst +0 -0
  396. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.create_fixed_length_windows.rst +0 -0
  397. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.create_windows_from_events.rst +0 -0
  398. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.create_windows_from_target_channels.rst +0 -0
  399. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.exponential_moving_demean.rst +0 -0
  400. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.exponential_moving_standardize.rst +0 -0
  401. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.filterbank.rst +0 -0
  402. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.preprocessing.preprocess.rst +0 -0
  403. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.samplers.BalancedSequenceSampler.rst +0 -0
  404. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.samplers.RecordingSampler.rst +0 -0
  405. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.samplers.RelativePositioningSampler.rst +0 -0
  406. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.samplers.SequenceSampler.rst +0 -0
  407. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.CroppedTimeSeriesEpochScoring.rst +0 -0
  408. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.CroppedTrialEpochScoring.rst +0 -0
  409. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.PostEpochTrainScoring.rst +0 -0
  410. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.mixup_criterion.rst +0 -0
  411. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.predict_trials.rst +0 -0
  412. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.training.trial_preds_from_window_preds.rst +0 -0
  413. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.util.set_random_seeds.rst +0 -0
  414. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.visualization.compute_amplitude_gradients.rst +0 -0
  415. {braindecode-0.8 → braindecode-1.0.0}/docs/generated/braindecode.visualization.plot_confusion_matrix.rst +0 -0
@@ -1,6 +1,6 @@
1
1
  BSD 3-Clause License
2
2
 
3
- Copyright (c) 2017-2020 Braindecode Developers
3
+ Copyright (c) 2017-currently Braindecode Developers
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without modification,
@@ -1,5 +1,8 @@
1
1
  include README.rst
2
2
  include LICENSE.txt
3
+ include NOTICE.txt
4
+
5
+ include braindecode/models/summary.csv
3
6
 
4
7
  recursive-include docs *.ipynb *.rst conf.py Makefile
5
8
  recursive-exclude docs *checkpoint.ipynb
@@ -0,0 +1,20 @@
1
+ # BRAINDECODE Notice
2
+
3
+ ## Licensed Components
4
+
5
+ ### BSD-3-Clause Licensed Files
6
+
7
+ All files within the `src/` directory are licensed under the BSD-3-Clause License.
8
+
9
+ ### CC BY-NC 4.0 Licensed Files
10
+
11
+ The following components are licensed under the Creative Commons Attribution-NonCommercial 4.0 International License:
12
+
13
+ - `braindecode/models/eegminer.py`
14
+
15
+ As well as class later imported into the `braindecode.models.module` named as GeneralizedGaussianFilter.
16
+
17
+ ## License Links
18
+
19
+ - [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
20
+ - [CC BY-NC 4.0 License](https://creativecommons.org/licenses/by-nc/4.0/)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: braindecode
3
- Version: 0.8
3
+ Version: 1.0.0
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>
@@ -15,14 +15,15 @@ Classifier: Intended Audience :: Science/Research
15
15
  Classifier: Topic :: Software Development :: Build Tools
16
16
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
17
  Classifier: License :: OSI Approved :: BSD License
18
- Classifier: Programming Language :: Python :: 3.8
19
- Classifier: Programming Language :: Python :: 3.9
20
18
  Classifier: Programming Language :: Python :: 3.10
21
19
  Classifier: Programming Language :: Python :: 3.11
22
- Requires-Python: >=3.8
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Requires-Python: >3.9
23
22
  Description-Content-Type: text/x-rst
24
23
  License-File: LICENSE.txt
25
- Requires-Dist: mne
24
+ License-File: NOTICE.txt
25
+ Requires-Dist: mne>=1.10.0
26
+ Requires-Dist: mne_bids>=0.16
26
27
  Requires-Dist: numpy
27
28
  Requires-Dist: pandas
28
29
  Requires-Dist: scipy
@@ -30,17 +31,22 @@ Requires-Dist: matplotlib
30
31
  Requires-Dist: h5py
31
32
  Requires-Dist: skorch
32
33
  Requires-Dist: torch
34
+ Requires-Dist: torchaudio
33
35
  Requires-Dist: einops
34
36
  Requires-Dist: joblib
35
37
  Requires-Dist: torchinfo
38
+ Requires-Dist: wfdb
39
+ Requires-Dist: h5py
40
+ Requires-Dist: linear_attention_transformer
36
41
  Requires-Dist: docstring_inheritance
37
42
  Provides-Extra: moabb
38
- Requires-Dist: moabb>=1.0.0; extra == "moabb"
43
+ Requires-Dist: moabb>=1.2.0; extra == "moabb"
39
44
  Provides-Extra: tests
40
45
  Requires-Dist: pytest; extra == "tests"
41
46
  Requires-Dist: pytest-cov; extra == "tests"
42
47
  Requires-Dist: codecov; extra == "tests"
43
48
  Requires-Dist: pytest_cases; extra == "tests"
49
+ Requires-Dist: mypy; extra == "tests"
44
50
  Provides-Extra: docs
45
51
  Requires-Dist: sphinx_gallery; extra == "docs"
46
52
  Requires-Dist: sphinx_rtd_theme; extra == "docs"
@@ -53,6 +59,8 @@ Requires-Dist: sphinx_design; extra == "docs"
53
59
  Requires-Dist: lightning; extra == "docs"
54
60
  Requires-Dist: seaborn; extra == "docs"
55
61
  Requires-Dist: pre-commit; extra == "docs"
62
+ Requires-Dist: openneuro-py; extra == "docs"
63
+ Dynamic: license-file
56
64
 
57
65
  .. image:: https://badges.gitter.im/braindecodechat/community.svg
58
66
  :alt: Join the chat at https://gitter.im/braindecodechat/community
@@ -166,37 +174,13 @@ as well as the `MNE-Python <https://mne.tools>`_ software that is used by braind
166
174
  Licensing
167
175
  ^^^^^^^^^
168
176
 
169
- Braindecode is **BSD-licenced** (BSD-3-Clause):
170
-
171
- This software is OSI Certified Open Source Software.
172
- OSI Certified is a certification mark of the Open Source Initiative.
173
-
174
- Copyright (c) 2011-2022, authors of Braindecode.
175
- All rights reserved.
176
-
177
- Redistribution and use in source and binary forms, with or without
178
- modification, are permitted provided that the following conditions are met:
179
-
180
- * Redistributions of source code must retain the above copyright notice,
181
- this list of conditions and the following disclaimer.
177
+ This project is primarily licensed under the BSD-3-Clause License.
182
178
 
183
- * Redistributions in binary form must reproduce the above copyright notice,
184
- this list of conditions and the following disclaimer in the documentation
185
- and/or other materials provided with the distribution.
179
+ Additional Components
180
+ ~~~~~~~~~~~~~~~~~~~~~
186
181
 
187
- * Neither the names of braindecode authors nor the names of any
188
- contributors may be used to endorse or promote products derived from
189
- this software without specific prior written permission.
182
+ Some components within this repository are licensed under the Creative Commons Attribution-NonCommercial 4.0 International
183
+ License.
190
184
 
191
- **This software is provided by the copyright holders and contributors
192
- "as is" and any express or implied warranties, including, but not
193
- limited to, the implied warranties of merchantability and fitness for
194
- a particular purpose are disclaimed. In no event shall the copyright
195
- owner or contributors be liable for any direct, indirect, incidental,
196
- special, exemplary, or consequential damages (including, but not
197
- limited to, procurement of substitute goods or services; loss of use,
198
- data, or profits; or business interruption) however caused and on any
199
- theory of liability, whether in contract, strict liability, or tort
200
- (including negligence or otherwise) arising in any way out of the use
201
- of this software, even if advised of the possibility of such
202
- damage.**
185
+ Please refer to the ``LICENSE`` and ``NOTICE`` files for more detailed
186
+ information.
@@ -110,37 +110,13 @@ as well as the `MNE-Python <https://mne.tools>`_ software that is used by braind
110
110
  Licensing
111
111
  ^^^^^^^^^
112
112
 
113
- Braindecode is **BSD-licenced** (BSD-3-Clause):
114
-
115
- This software is OSI Certified Open Source Software.
116
- OSI Certified is a certification mark of the Open Source Initiative.
117
-
118
- Copyright (c) 2011-2022, authors of Braindecode.
119
- All rights reserved.
120
-
121
- Redistribution and use in source and binary forms, with or without
122
- modification, are permitted provided that the following conditions are met:
123
-
124
- * Redistributions of source code must retain the above copyright notice,
125
- this list of conditions and the following disclaimer.
126
-
127
- * Redistributions in binary form must reproduce the above copyright notice,
128
- this list of conditions and the following disclaimer in the documentation
129
- and/or other materials provided with the distribution.
130
-
131
- * Neither the names of braindecode authors nor the names of any
132
- contributors may be used to endorse or promote products derived from
133
- this software without specific prior written permission.
134
-
135
- **This software is provided by the copyright holders and contributors
136
- "as is" and any express or implied warranties, including, but not
137
- limited to, the implied warranties of merchantability and fitness for
138
- a particular purpose are disclaimed. In no event shall the copyright
139
- owner or contributors be liable for any direct, indirect, incidental,
140
- special, exemplary, or consequential damages (including, but not
141
- limited to, procurement of substitute goods or services; loss of use,
142
- data, or profits; or business interruption) however caused and on any
143
- theory of liability, whether in contract, strict liability, or tort
144
- (including negligence or otherwise) arising in any way out of the use
145
- of this software, even if advised of the possibility of such
146
- damage.**
113
+ This project is primarily licensed under the BSD-3-Clause License.
114
+
115
+ Additional Components
116
+ ~~~~~~~~~~~~~~~~~~~~~
117
+
118
+ Some components within this repository are licensed under the Creative Commons Attribution-NonCommercial 4.0 International
119
+ License.
120
+
121
+ Please refer to the ``LICENSE`` and ``NOTICE`` files for more detailed
122
+ information.
@@ -1,7 +1,6 @@
1
- from .version import __version__
2
-
3
1
  from .classifier import EEGClassifier
4
2
  from .regressor import EEGRegressor
3
+ from .version import __version__
5
4
 
6
5
  __all__ = [
7
6
  "__version__",
@@ -0,0 +1,50 @@
1
+ """
2
+ Utilities for data augmentation.
3
+ """
4
+
5
+ from . import functional
6
+ from .base import AugmentedDataLoader, Compose, IdentityTransform, Transform
7
+ from .transforms import (
8
+ BandstopFilter,
9
+ ChannelsDropout,
10
+ ChannelsShuffle,
11
+ ChannelsSymmetry,
12
+ FrequencyShift,
13
+ FTSurrogate,
14
+ GaussianNoise,
15
+ MaskEncoding,
16
+ Mixup,
17
+ SegmentationReconstruction,
18
+ SensorsRotation,
19
+ SensorsXRotation,
20
+ SensorsYRotation,
21
+ SensorsZRotation,
22
+ SignFlip,
23
+ SmoothTimeMask,
24
+ TimeReverse,
25
+ )
26
+
27
+ __all__ = [
28
+ "Transform",
29
+ "IdentityTransform",
30
+ "Compose",
31
+ "AugmentedDataLoader",
32
+ "TimeReverse",
33
+ "SignFlip",
34
+ "FTSurrogate",
35
+ "ChannelsShuffle",
36
+ "ChannelsDropout",
37
+ "GaussianNoise",
38
+ "ChannelsSymmetry",
39
+ "SmoothTimeMask",
40
+ "BandstopFilter",
41
+ "FrequencyShift",
42
+ "SensorsRotation",
43
+ "SensorsZRotation",
44
+ "SensorsYRotation",
45
+ "SensorsXRotation",
46
+ "Mixup",
47
+ "SegmentationReconstruction",
48
+ "MaskEncoding",
49
+ "functional",
50
+ ]
@@ -0,0 +1,222 @@
1
+ # Authors: Cédric Rommel <cedric.rommel@inria.fr>
2
+ # Alexandre Gramfort <alexandre.gramfort@inria.fr>
3
+ # Bruno Aristimunha <b.aristimunha@gmail.com>
4
+ # Martin Wimpff <martin.wimpff@iss.uni-stuttgart.de>
5
+ # Valentin Iovene <val@too.gy>
6
+ # License: BSD (3-clause)
7
+
8
+ from numbers import Real
9
+ from typing import Any, Callable, Optional, Union
10
+
11
+ import torch
12
+ from sklearn.utils import check_random_state
13
+ from torch import Tensor, nn
14
+ from torch.utils.data import DataLoader
15
+ from torch.utils.data._utils.collate import default_collate
16
+
17
+ from .functional import identity
18
+
19
+ Batch = list[tuple[torch.Tensor, int, Any]]
20
+ Output = Union[
21
+ # just outputting X
22
+ torch.Tensor,
23
+ # outputting (X, y) where y can be a tensor or tuple of tensors
24
+ tuple[torch.Tensor, Union[torch.Tensor, tuple[torch.Tensor, ...]]],
25
+ ]
26
+ # (X, y) -> (X', y') where y' can be a tensor or a tuple of tensors
27
+ Operation = Callable[
28
+ [torch.Tensor, torch.Tensor],
29
+ tuple[torch.Tensor, Union[torch.Tensor, tuple[torch.Tensor, ...]]],
30
+ ]
31
+
32
+
33
+ class Transform(torch.nn.Module):
34
+ """Basic transform class used for implementing data augmentation
35
+ operations.
36
+
37
+ Parameters
38
+ ----------
39
+ operation : callable
40
+ A function taking arrays X, y (inputs and targets resp.) and
41
+ other required arguments, and returning the transformed X and y.
42
+ probability : float, optional
43
+ Float between 0 and 1 defining the uniform probability of applying the
44
+ operation. Set to 1.0 by default (e.g always apply the operation).
45
+ random_state: int, optional
46
+ Seed to be used to instantiate numpy random number generator instance.
47
+ Used to decide whether or not to transform given the probability
48
+ argument. Defaults to None.
49
+ """
50
+
51
+ operation: Operation
52
+
53
+ def __init__(self, probability=1.0, random_state=None):
54
+ super().__init__()
55
+ if self.forward.__func__ is Transform.forward:
56
+ assert callable(self.operation), "operation should be a ``callable``. "
57
+
58
+ assert isinstance(probability, Real), (
59
+ f"probability should be a ``real``. Got {type(probability)}."
60
+ )
61
+ assert probability <= 1.0 and probability >= 0.0, (
62
+ "probability should be between 0 and 1."
63
+ )
64
+ self._probability = probability
65
+ self.rng = check_random_state(random_state)
66
+
67
+ def get_augmentation_params(self, *batch):
68
+ return dict()
69
+
70
+ def forward(self, X: Tensor, y: Optional[Tensor] = None) -> Output:
71
+ """General forward pass for an augmentation transform.
72
+
73
+ Parameters
74
+ ----------
75
+ X : torch.Tensor
76
+ EEG input example or batch.
77
+ y : torch.Tensor | None
78
+ EEG labels for the example or batch. Defaults to None.
79
+
80
+ Returns
81
+ -------
82
+ torch.Tensor
83
+ Transformed inputs.
84
+ torch.Tensor, optional
85
+ Transformed labels. Only returned when y is not None.
86
+ """
87
+ X = torch.as_tensor(X).float()
88
+
89
+ out_X = X.clone()
90
+ # check if input has a batch dimension
91
+ if len(out_X.shape) < 3:
92
+ out_X = out_X[None, ...]
93
+
94
+ if y is not None:
95
+ y = torch.as_tensor(y).to(out_X.device)
96
+ out_y = y.clone()
97
+ if len(out_y.shape) == 0:
98
+ out_y = out_y.reshape(1)
99
+ else:
100
+ out_y = torch.zeros(out_X.shape[0], device=out_X.device)
101
+
102
+ # Samples a mask setting for each example whether they should stay
103
+ # unchanged or not
104
+ mask = self._get_mask(out_X.shape[0], out_X.device)
105
+ num_valid = mask.sum().long()
106
+
107
+ if num_valid > 0:
108
+ # Uses the mask to define the output
109
+ out_X[mask, ...], tr_y = self.operation(
110
+ out_X[mask, ...],
111
+ out_y[mask],
112
+ **self.get_augmentation_params(out_X[mask, ...], out_y[mask]),
113
+ )
114
+ # Apply the operation defining the Transform to the whole batch
115
+ if isinstance(tr_y, tuple):
116
+ out_y = tuple(tmp_y[mask] for tmp_y in tr_y)
117
+ else:
118
+ out_y[mask] = tr_y
119
+
120
+ # potentially remove empty batch dimension again
121
+ out_X = out_X.reshape_as(X)
122
+ if y is not None:
123
+ return out_X, out_y
124
+ else:
125
+ return out_X
126
+
127
+ def _get_mask(self, batch_size, device) -> torch.Tensor:
128
+ """Samples whether to apply operation or not over the whole batch"""
129
+ return torch.as_tensor(self.probability > self.rng.uniform(size=batch_size)).to(
130
+ device
131
+ )
132
+
133
+ @property
134
+ def probability(self):
135
+ return self._probability
136
+
137
+
138
+ class IdentityTransform(Transform):
139
+ """Identity transform.
140
+
141
+ Transform that does not change the input.
142
+ """
143
+
144
+ operation = staticmethod(identity) # type: ignore[assignment]
145
+ # https://github.com/python/mypy/issues/4574
146
+
147
+
148
+ class Compose(Transform):
149
+ """Transform composition.
150
+
151
+ Callable class allowing to cast a sequence of Transform objects into a
152
+ single one.
153
+
154
+ Parameters
155
+ ----------
156
+ transforms: list
157
+ Sequence of Transforms to be composed.
158
+ """
159
+
160
+ def __init__(self, transforms):
161
+ self.transforms = transforms
162
+ super().__init__()
163
+
164
+ def forward(self, X, y):
165
+ for transform in self.transforms:
166
+ X, y = transform(X, y)
167
+ return X, y
168
+
169
+
170
+ def _make_collateable(transform, device=None):
171
+ """Wraps a transform to make it collateable.
172
+ with device control."""
173
+
174
+ def _collate_fn(batch):
175
+ collated_batch = default_collate(batch)
176
+ X, y = collated_batch[:2]
177
+
178
+ if device is not None:
179
+ X = X.to(device)
180
+ y = y.to(device)
181
+
182
+ return (*transform(X, y), *collated_batch[2:])
183
+
184
+ return _collate_fn
185
+
186
+
187
+ class AugmentedDataLoader(DataLoader):
188
+ """A base dataloader class customized to applying augmentation Transforms.
189
+
190
+ Parameters
191
+ ----------
192
+ dataset : BaseDataset
193
+ The dataset containing the signals.
194
+ transforms : list | Transform, optional
195
+ Transform or sequence of Transform to be applied to each batch.
196
+ device : str | torch.device | None, optional
197
+ Device on which to transform the data. Defaults to None.
198
+ **kwargs : dict, optional
199
+ keyword arguments to pass to standard DataLoader class.
200
+ """
201
+
202
+ def __init__(self, dataset, transforms=None, device=None, **kwargs):
203
+ if "collate_fn" in kwargs:
204
+ raise ValueError(
205
+ "collate_fn cannot be used in this context because it is used "
206
+ "to pass transform"
207
+ )
208
+ if transforms is None or (
209
+ isinstance(transforms, list) and len(transforms) == 0
210
+ ):
211
+ self.collated_tr = _make_collateable(IdentityTransform(), device=device)
212
+ elif isinstance(transforms, (Transform, nn.Module)):
213
+ self.collated_tr = _make_collateable(transforms, device=device)
214
+ elif isinstance(transforms, list):
215
+ self.collated_tr = _make_collateable(Compose(transforms), device=device)
216
+ else:
217
+ raise TypeError(
218
+ "transforms can be either a Transform object "
219
+ "or a list of Transform objects."
220
+ )
221
+
222
+ super().__init__(dataset, collate_fn=self.collated_tr, **kwargs)