Braindecode 1.3.0.dev168639307__tar.gz → 1.3.0.dev169126795__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 (183) hide show
  1. braindecode-1.3.0.dev169126795/PKG-INFO +202 -0
  2. braindecode-1.3.0.dev169126795/README.rst +122 -0
  3. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/augmentation/__init__.py +3 -5
  4. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/augmentation/base.py +5 -8
  5. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/augmentation/functional.py +22 -25
  6. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/augmentation/transforms.py +42 -51
  7. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/classifier.py +16 -11
  8. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/__init__.py +3 -5
  9. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/base.py +13 -17
  10. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/bbci.py +14 -13
  11. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/bcicomp.py +5 -4
  12. braindecode-1.3.0.dev168639307/braindecode/datasets/bids/datasets.py → braindecode-1.3.0.dev169126795/braindecode/datasets/bids.py +18 -12
  13. braindecode-1.3.0.dev168639307/braindecode/datasets/bids/iterable.py → braindecode-1.3.0.dev169126795/braindecode/datasets/experimental.py +6 -8
  14. {braindecode-1.3.0.dev168639307/braindecode/datasets/bids → braindecode-1.3.0.dev169126795/braindecode/datasets}/hub.py +350 -375
  15. {braindecode-1.3.0.dev168639307/braindecode/datasets/bids → braindecode-1.3.0.dev169126795/braindecode/datasets}/hub_validation.py +1 -2
  16. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/mne.py +19 -19
  17. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/moabb.py +10 -10
  18. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/nmt.py +56 -58
  19. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/sleep_physio_challe_18.py +5 -3
  20. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/sleep_physionet.py +5 -5
  21. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/tuh.py +18 -21
  22. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/xy.py +9 -10
  23. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datautil/__init__.py +3 -3
  24. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datautil/serialization.py +19 -21
  25. braindecode-1.3.0.dev169126795/braindecode/datautil/util.py +41 -0
  26. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/eegneuralnet.py +52 -22
  27. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/functional/functions.py +10 -7
  28. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/functional/initialization.py +2 -3
  29. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/__init__.py +3 -5
  30. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/atcnet.py +30 -34
  31. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/attentionbasenet.py +41 -37
  32. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/attn_sleep.py +24 -26
  33. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/base.py +6 -6
  34. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/bendr.py +26 -50
  35. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/biot.py +9 -40
  36. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/contrawr.py +5 -5
  37. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/ctnet.py +7 -7
  38. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/deep4.py +5 -5
  39. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/deepsleepnet.py +7 -7
  40. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegconformer.py +10 -15
  41. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eeginception_erp.py +2 -2
  42. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eeginception_mi.py +6 -6
  43. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegitnet.py +5 -5
  44. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegminer.py +1 -1
  45. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegnet.py +3 -3
  46. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegnex.py +2 -2
  47. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegsimpleconv.py +2 -2
  48. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegsym.py +7 -7
  49. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/eegtcnet.py +6 -6
  50. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/fbcnet.py +2 -2
  51. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/fblightconvnet.py +3 -3
  52. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/fbmsnet.py +3 -3
  53. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/hybrid.py +2 -2
  54. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/ifnet.py +5 -5
  55. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/labram.py +12 -36
  56. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/luna.py +5 -60
  57. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/medformer.py +9 -11
  58. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/msvtnet.py +6 -6
  59. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/patchedtransformer.py +13 -13
  60. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/sccnet.py +2 -2
  61. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/shallow_fbcsp.py +3 -5
  62. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/signal_jepa.py +12 -39
  63. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/sinc_shallow.py +4 -3
  64. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/sleep_stager_blanco_2020.py +2 -2
  65. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/sleep_stager_chambon_2018.py +2 -2
  66. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/sparcnet.py +8 -8
  67. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/sstdpn.py +869 -869
  68. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/summary.csv +17 -19
  69. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/syncnet.py +2 -2
  70. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/tcn.py +5 -5
  71. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/tidnet.py +3 -3
  72. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/tsinception.py +3 -3
  73. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/usleep.py +7 -7
  74. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/models/util.py +14 -165
  75. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/__init__.py +1 -9
  76. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/activation.py +3 -29
  77. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/attention.py +0 -123
  78. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/blocks.py +1 -53
  79. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/convolution.py +0 -53
  80. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/filter.py +0 -31
  81. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/layers.py +0 -84
  82. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/linear.py +1 -22
  83. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/stats.py +0 -10
  84. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/util.py +0 -9
  85. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/wrapper.py +0 -17
  86. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/preprocessing/preprocess.py +0 -3
  87. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/regressor.py +18 -15
  88. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/samplers/ssl.py +1 -1
  89. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/util.py +28 -38
  90. braindecode-1.3.0.dev169126795/braindecode/version.py +1 -0
  91. braindecode-1.3.0.dev169126795/braindecode.egg-info/PKG-INFO +202 -0
  92. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode.egg-info/SOURCES.txt +4 -16
  93. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode.egg-info/requires.txt +15 -19
  94. braindecode-1.3.0.dev169126795/docs/api.rst +694 -0
  95. braindecode-1.3.0.dev169126795/docs/cite.rst +65 -0
  96. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/docs/conf.py +1 -20
  97. braindecode-1.3.0.dev169126795/docs/help.rst +62 -0
  98. braindecode-1.3.0.dev169126795/docs/index.rst +50 -0
  99. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/docs/install/install.rst +6 -5
  100. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/docs/install/install_pip.rst +10 -16
  101. braindecode-1.3.0.dev169126795/docs/install/install_source.rst +71 -0
  102. braindecode-1.3.0.dev169126795/docs/models/categorization/attention.rst +31 -0
  103. braindecode-1.3.0.dev169126795/docs/models/categorization/channel.rst +31 -0
  104. braindecode-1.3.0.dev169126795/docs/models/categorization/convolution.rst +33 -0
  105. braindecode-1.3.0.dev169126795/docs/models/categorization/filterbank.rst +31 -0
  106. braindecode-1.3.0.dev169126795/docs/models/categorization/gnn.rst +27 -0
  107. braindecode-1.3.0.dev169126795/docs/models/categorization/interpretable.rst +31 -0
  108. braindecode-1.3.0.dev169126795/docs/models/categorization/lbm.rst +31 -0
  109. braindecode-1.3.0.dev169126795/docs/models/categorization/recurrent.rst +31 -0
  110. braindecode-1.3.0.dev169126795/docs/models/categorization/spd.rst +31 -0
  111. braindecode-1.3.0.dev169126795/docs/models/models.rst +78 -0
  112. braindecode-1.3.0.dev169126795/docs/models/models_categorization.rst +201 -0
  113. braindecode-1.3.0.dev169126795/docs/models/models_table.rst +191 -0
  114. braindecode-1.3.0.dev169126795/docs/models/models_visualization.rst +31 -0
  115. braindecode-1.3.0.dev169126795/docs/sg_execution_times.rst +112 -0
  116. braindecode-1.3.0.dev169126795/docs/whats_new.rst +434 -0
  117. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/pyproject.toml +23 -27
  118. braindecode-1.3.0.dev168639307/PKG-INFO +0 -230
  119. braindecode-1.3.0.dev168639307/README.rst +0 -146
  120. braindecode-1.3.0.dev168639307/braindecode/datasets/bids/__init__.py +0 -54
  121. braindecode-1.3.0.dev168639307/braindecode/datasets/bids/format.py +0 -717
  122. braindecode-1.3.0.dev168639307/braindecode/datasets/bids/hub_format.py +0 -717
  123. braindecode-1.3.0.dev168639307/braindecode/datasets/bids/hub_io.py +0 -197
  124. braindecode-1.3.0.dev168639307/braindecode/datasets/chb_mit.py +0 -163
  125. braindecode-1.3.0.dev168639307/braindecode/datasets/siena.py +0 -162
  126. braindecode-1.3.0.dev168639307/braindecode/datasets/utils.py +0 -67
  127. braindecode-1.3.0.dev168639307/braindecode/datautil/util.py +0 -154
  128. braindecode-1.3.0.dev168639307/braindecode/models/brainmodule.py +0 -845
  129. braindecode-1.3.0.dev168639307/braindecode/models/config.py +0 -233
  130. braindecode-1.3.0.dev168639307/braindecode/models/reve.py +0 -837
  131. braindecode-1.3.0.dev168639307/braindecode/version.py +0 -1
  132. braindecode-1.3.0.dev168639307/braindecode.egg-info/PKG-INFO +0 -230
  133. braindecode-1.3.0.dev168639307/docs/_templates/autosummary/class_in_subdir.rst +0 -37
  134. braindecode-1.3.0.dev168639307/docs/_templates/autosummary/function_in_subdir.rst +0 -12
  135. braindecode-1.3.0.dev168639307/docs/api.rst +0 -798
  136. braindecode-1.3.0.dev168639307/docs/cite.rst +0 -72
  137. braindecode-1.3.0.dev168639307/docs/help.rst +0 -62
  138. braindecode-1.3.0.dev168639307/docs/index.rst +0 -48
  139. braindecode-1.3.0.dev168639307/docs/install/install_source.rst +0 -78
  140. braindecode-1.3.0.dev168639307/docs/models/categorization/attention.rst +0 -35
  141. braindecode-1.3.0.dev168639307/docs/models/categorization/channel.rst +0 -36
  142. braindecode-1.3.0.dev168639307/docs/models/categorization/convolution.rst +0 -42
  143. braindecode-1.3.0.dev168639307/docs/models/categorization/filterbank.rst +0 -35
  144. braindecode-1.3.0.dev168639307/docs/models/categorization/gnn.rst +0 -27
  145. braindecode-1.3.0.dev168639307/docs/models/categorization/interpretable.rst +0 -35
  146. braindecode-1.3.0.dev168639307/docs/models/categorization/lbm.rst +0 -35
  147. braindecode-1.3.0.dev168639307/docs/models/categorization/recurrent.rst +0 -35
  148. braindecode-1.3.0.dev168639307/docs/models/categorization/spd.rst +0 -35
  149. braindecode-1.3.0.dev168639307/docs/models/models.rst +0 -89
  150. braindecode-1.3.0.dev168639307/docs/models/models_categorization.rst +0 -244
  151. braindecode-1.3.0.dev168639307/docs/models/models_table.rst +0 -209
  152. braindecode-1.3.0.dev168639307/docs/models/models_visualization.rst +0 -33
  153. braindecode-1.3.0.dev168639307/docs/sg_execution_times.rst +0 -110
  154. braindecode-1.3.0.dev168639307/docs/whats_new.rst +0 -816
  155. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/LICENSE.txt +0 -0
  156. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/MANIFEST.in +0 -0
  157. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/NOTICE.txt +0 -0
  158. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/__init__.py +0 -0
  159. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datasets/registry.py +0 -0
  160. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datautil/channel_utils.py +0 -0
  161. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/datautil/hub_formats.py +0 -0
  162. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/functional/__init__.py +0 -0
  163. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/modules/parametrization.py +0 -0
  164. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/preprocessing/__init__.py +0 -0
  165. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/preprocessing/eegprep_preprocess.py +0 -0
  166. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/preprocessing/mne_preprocess.py +0 -0
  167. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/preprocessing/util.py +0 -0
  168. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/preprocessing/windowers.py +0 -0
  169. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/samplers/__init__.py +0 -0
  170. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/samplers/base.py +0 -0
  171. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/training/__init__.py +0 -0
  172. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/training/callbacks.py +0 -0
  173. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/training/losses.py +0 -0
  174. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/training/scoring.py +0 -0
  175. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/visualization/__init__.py +0 -0
  176. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/visualization/confusion_matrices.py +0 -0
  177. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode/visualization/gradients.py +0 -0
  178. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode.egg-info/dependency_links.txt +0 -0
  179. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/braindecode.egg-info/top_level.txt +0 -0
  180. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/docs/Makefile +0 -0
  181. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/docs/_templates/autosummary/class.rst +0 -0
  182. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/docs/_templates/autosummary/function.rst +0 -0
  183. {braindecode-1.3.0.dev168639307 → braindecode-1.3.0.dev169126795}/setup.cfg +0 -0
@@ -0,0 +1,202 @@
1
+ Metadata-Version: 2.4
2
+ Name: braindecode
3
+ Version: 1.3.0.dev169126795
4
+ Summary: Deep learning software to decode EEG, ECG or MEG signals
5
+ Author-email: Robin Tibor Schirrmeister <robintibor@gmail.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Alexandre Gramfort <agramfort@meta.com>
6
+ Maintainer-email: Alexandre Gramfort <agramfort@meta.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Robin Tibor Schirrmeister <robintibor@gmail.com>
7
+ License: BSD-3-Clause
8
+ Project-URL: homepage, https://braindecode.org
9
+ Project-URL: repository, https://github.com/braindecode/braindecode
10
+ Project-URL: documentation, https://braindecode.org/stable/index.html
11
+ Keywords: python,deep-learning,neuroscience,pytorch,meg,eeg,neuroimaging,electroencephalography,magnetoencephalography,electrocorticography,ecog,electroencephalogram
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Topic :: Software Development :: Build Tools
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/x-rst
22
+ License-File: LICENSE.txt
23
+ License-File: NOTICE.txt
24
+ Requires-Dist: mne>=1.10.0
25
+ Requires-Dist: mne_bids>=0.16
26
+ Requires-Dist: numpy
27
+ Requires-Dist: pandas
28
+ Requires-Dist: scipy
29
+ Requires-Dist: matplotlib
30
+ Requires-Dist: h5py
31
+ Requires-Dist: skorch>=1.2.0
32
+ Requires-Dist: torch<3.0,>=2.0
33
+ Requires-Dist: torchaudio<3.0,>=2.0
34
+ Requires-Dist: einops
35
+ Requires-Dist: joblib
36
+ Requires-Dist: torchinfo~=1.8
37
+ Requires-Dist: wfdb
38
+ Requires-Dist: h5py
39
+ Requires-Dist: linear_attention_transformer
40
+ Requires-Dist: docstring_inheritance
41
+ Requires-Dist: rotary_embedding_torch
42
+ Provides-Extra: moabb
43
+ Requires-Dist: moabb>=1.2.0; extra == "moabb"
44
+ Provides-Extra: eegprep
45
+ Requires-Dist: eegprep[eeglabio]>=0.1.1; extra == "eegprep"
46
+ Provides-Extra: hub
47
+ Requires-Dist: huggingface_hub[torch]>=0.20.0; extra == "hub"
48
+ Requires-Dist: zarr<3.0,>=2.18; extra == "hub"
49
+ Provides-Extra: tests
50
+ Requires-Dist: pytest; extra == "tests"
51
+ Requires-Dist: pytest-cov; extra == "tests"
52
+ Requires-Dist: codecov; extra == "tests"
53
+ Requires-Dist: pytest_cases; extra == "tests"
54
+ Requires-Dist: mypy; extra == "tests"
55
+ Provides-Extra: docs
56
+ Requires-Dist: sphinx_gallery; extra == "docs"
57
+ Requires-Dist: sphinx_rtd_theme; extra == "docs"
58
+ Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
59
+ Requires-Dist: sphinx-autobuild; extra == "docs"
60
+ Requires-Dist: sphinxcontrib-bibtex; extra == "docs"
61
+ Requires-Dist: sphinx_sitemap; extra == "docs"
62
+ Requires-Dist: pydata_sphinx_theme; extra == "docs"
63
+ Requires-Dist: numpydoc; extra == "docs"
64
+ Requires-Dist: memory_profiler; extra == "docs"
65
+ Requires-Dist: pillow; extra == "docs"
66
+ Requires-Dist: ipython; extra == "docs"
67
+ Requires-Dist: sphinx_design; extra == "docs"
68
+ Requires-Dist: lightning; extra == "docs"
69
+ Requires-Dist: seaborn; extra == "docs"
70
+ Requires-Dist: pre-commit; extra == "docs"
71
+ Requires-Dist: openneuro-py; extra == "docs"
72
+ Requires-Dist: plotly; extra == "docs"
73
+ Provides-Extra: all
74
+ Requires-Dist: braindecode[moabb]; extra == "all"
75
+ Requires-Dist: braindecode[hub]; extra == "all"
76
+ Requires-Dist: braindecode[tests]; extra == "all"
77
+ Requires-Dist: braindecode[docs]; extra == "all"
78
+ Requires-Dist: braindecode[eegprep]; extra == "all"
79
+ Dynamic: license-file
80
+
81
+ .. image:: https://badges.gitter.im/braindecodechat/community.svg
82
+ :alt: Join the chat at https://gitter.im/braindecodechat/community
83
+ :target: https://gitter.im/braindecodechat/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
84
+
85
+ .. image:: https://github.com/braindecode/braindecode/workflows/docs/badge.svg
86
+ :target: https://github.com/braindecode/braindecode/actions
87
+
88
+ .. image:: https://circleci.com/gh/braindecode/braindecode.svg?style=svg
89
+ :target: https://circleci.com/gh/braindecode/braindecode
90
+ :alt: Doc build on CircleCI
91
+
92
+ .. image:: https://codecov.io/gh/braindecode/braindecode/branch/master/graph/badge.svg
93
+ :target: https://codecov.io/gh/braindecode/braindecode
94
+ :alt: Code Coverage
95
+
96
+ .. |Braindecode| image:: https://user-images.githubusercontent.com/42702466/177958779-b00628aa-9155-4c51-96d1-d8c345aff575.svg
97
+ .. _braindecode: braindecode.org/
98
+
99
+ Braindecode
100
+ ===========
101
+
102
+ Braindecode is an open-source Python toolbox for decoding raw electrophysiological brain
103
+ data with deep learning models. It includes dataset fetchers, data preprocessing and
104
+ visualization tools, as well as implementations of several deep learning
105
+ architectures and data augmentations for analysis of EEG, ECoG and MEG.
106
+
107
+ For neuroscientists who want to work with deep learning and
108
+ deep learning researchers who want to work with neurophysiological data.
109
+
110
+
111
+ Installation Braindecode
112
+ ========================
113
+
114
+ 1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
115
+
116
+ 2. If you want to download EEG datasets from `MOABB <https://github.com/NeuroTechX/moabb>`_, install it:
117
+
118
+ .. code-block:: bash
119
+
120
+ pip install moabb
121
+
122
+ 3. Install latest release of braindecode via pip:
123
+
124
+ .. code-block:: bash
125
+
126
+ pip install braindecode
127
+
128
+ If you want to install the latest development version of braindecode, please refer to `contributing page <https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md>`__
129
+
130
+
131
+ Documentation
132
+ =============
133
+
134
+ Documentation is online under https://braindecode.org, both in the stable and dev versions.
135
+
136
+
137
+ Contributing to Braindecode
138
+ ===========================
139
+
140
+ Guidelines for contributing to the library can be found on the braindecode github:
141
+
142
+ https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md
143
+
144
+ Braindecode chat
145
+ ================
146
+
147
+ https://gitter.im/braindecodechat/community
148
+
149
+ Citing
150
+ ======
151
+
152
+ If you use this code in a scientific publication, please cite us as:
153
+
154
+ .. code-block:: bibtex
155
+
156
+ @article {HBM:HBM23730,
157
+ author = {Schirrmeister, Robin Tibor and Springenberg, Jost Tobias and Fiederer,
158
+ Lukas Dominique Josef and Glasstetter, Martin and Eggensperger, Katharina and Tangermann, Michael and
159
+ Hutter, Frank and Burgard, Wolfram and Ball, Tonio},
160
+ title = {Deep learning with convolutional neural networks for EEG decoding and visualization},
161
+ journal = {Human Brain Mapping},
162
+ issn = {1097-0193},
163
+ url = {http://dx.doi.org/10.1002/hbm.23730},
164
+ doi = {10.1002/hbm.23730},
165
+ month = {aug},
166
+ year = {2017},
167
+ keywords = {electroencephalography, EEG analysis, machine learning, end-to-end learning, brain–machine interface,
168
+ brain–computer interface, model interpretability, brain mapping},
169
+ }
170
+
171
+ as well as the `MNE-Python <https://mne.tools>`_ software that is used by braindecode:
172
+
173
+ .. code-block:: bibtex
174
+
175
+ @article{10.3389/fnins.2013.00267,
176
+ author={Gramfort, Alexandre and Luessi, Martin and Larson, Eric and Engemann, Denis and Strohmeier, Daniel and Brodbeck, Christian and Goj, Roman and Jas, Mainak and Brooks, Teon and Parkkonen, Lauri and Hämäläinen, Matti},
177
+ title={{MEG and EEG data analysis with MNE-Python}},
178
+ journal={Frontiers in Neuroscience},
179
+ volume={7},
180
+ pages={267},
181
+ year={2013},
182
+ url={https://www.frontiersin.org/article/10.3389/fnins.2013.00267},
183
+ doi={10.3389/fnins.2013.00267},
184
+ issn={1662-453X},
185
+ }
186
+
187
+
188
+
189
+
190
+ Licensing
191
+ ^^^^^^^^^
192
+
193
+ This project is primarily licensed under the BSD-3-Clause License.
194
+
195
+ Additional Components
196
+ ~~~~~~~~~~~~~~~~~~~~~
197
+
198
+ Some components within this repository are licensed under the Creative Commons Attribution-NonCommercial 4.0 International
199
+ License.
200
+
201
+ Please refer to the ``LICENSE`` and ``NOTICE`` files for more detailed
202
+ information.
@@ -0,0 +1,122 @@
1
+ .. image:: https://badges.gitter.im/braindecodechat/community.svg
2
+ :alt: Join the chat at https://gitter.im/braindecodechat/community
3
+ :target: https://gitter.im/braindecodechat/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
4
+
5
+ .. image:: https://github.com/braindecode/braindecode/workflows/docs/badge.svg
6
+ :target: https://github.com/braindecode/braindecode/actions
7
+
8
+ .. image:: https://circleci.com/gh/braindecode/braindecode.svg?style=svg
9
+ :target: https://circleci.com/gh/braindecode/braindecode
10
+ :alt: Doc build on CircleCI
11
+
12
+ .. image:: https://codecov.io/gh/braindecode/braindecode/branch/master/graph/badge.svg
13
+ :target: https://codecov.io/gh/braindecode/braindecode
14
+ :alt: Code Coverage
15
+
16
+ .. |Braindecode| image:: https://user-images.githubusercontent.com/42702466/177958779-b00628aa-9155-4c51-96d1-d8c345aff575.svg
17
+ .. _braindecode: braindecode.org/
18
+
19
+ Braindecode
20
+ ===========
21
+
22
+ Braindecode is an open-source Python toolbox for decoding raw electrophysiological brain
23
+ data with deep learning models. It includes dataset fetchers, data preprocessing and
24
+ visualization tools, as well as implementations of several deep learning
25
+ architectures and data augmentations for analysis of EEG, ECoG and MEG.
26
+
27
+ For neuroscientists who want to work with deep learning and
28
+ deep learning researchers who want to work with neurophysiological data.
29
+
30
+
31
+ Installation Braindecode
32
+ ========================
33
+
34
+ 1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
35
+
36
+ 2. If you want to download EEG datasets from `MOABB <https://github.com/NeuroTechX/moabb>`_, install it:
37
+
38
+ .. code-block:: bash
39
+
40
+ pip install moabb
41
+
42
+ 3. Install latest release of braindecode via pip:
43
+
44
+ .. code-block:: bash
45
+
46
+ pip install braindecode
47
+
48
+ If you want to install the latest development version of braindecode, please refer to `contributing page <https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md>`__
49
+
50
+
51
+ Documentation
52
+ =============
53
+
54
+ Documentation is online under https://braindecode.org, both in the stable and dev versions.
55
+
56
+
57
+ Contributing to Braindecode
58
+ ===========================
59
+
60
+ Guidelines for contributing to the library can be found on the braindecode github:
61
+
62
+ https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md
63
+
64
+ Braindecode chat
65
+ ================
66
+
67
+ https://gitter.im/braindecodechat/community
68
+
69
+ Citing
70
+ ======
71
+
72
+ If you use this code in a scientific publication, please cite us as:
73
+
74
+ .. code-block:: bibtex
75
+
76
+ @article {HBM:HBM23730,
77
+ author = {Schirrmeister, Robin Tibor and Springenberg, Jost Tobias and Fiederer,
78
+ Lukas Dominique Josef and Glasstetter, Martin and Eggensperger, Katharina and Tangermann, Michael and
79
+ Hutter, Frank and Burgard, Wolfram and Ball, Tonio},
80
+ title = {Deep learning with convolutional neural networks for EEG decoding and visualization},
81
+ journal = {Human Brain Mapping},
82
+ issn = {1097-0193},
83
+ url = {http://dx.doi.org/10.1002/hbm.23730},
84
+ doi = {10.1002/hbm.23730},
85
+ month = {aug},
86
+ year = {2017},
87
+ keywords = {electroencephalography, EEG analysis, machine learning, end-to-end learning, brain–machine interface,
88
+ brain–computer interface, model interpretability, brain mapping},
89
+ }
90
+
91
+ as well as the `MNE-Python <https://mne.tools>`_ software that is used by braindecode:
92
+
93
+ .. code-block:: bibtex
94
+
95
+ @article{10.3389/fnins.2013.00267,
96
+ author={Gramfort, Alexandre and Luessi, Martin and Larson, Eric and Engemann, Denis and Strohmeier, Daniel and Brodbeck, Christian and Goj, Roman and Jas, Mainak and Brooks, Teon and Parkkonen, Lauri and Hämäläinen, Matti},
97
+ title={{MEG and EEG data analysis with MNE-Python}},
98
+ journal={Frontiers in Neuroscience},
99
+ volume={7},
100
+ pages={267},
101
+ year={2013},
102
+ url={https://www.frontiersin.org/article/10.3389/fnins.2013.00267},
103
+ doi={10.3389/fnins.2013.00267},
104
+ issn={1662-453X},
105
+ }
106
+
107
+
108
+
109
+
110
+ Licensing
111
+ ^^^^^^^^^
112
+
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,12 +1,12 @@
1
- """Utilities for data augmentation."""
1
+ """
2
+ Utilities for data augmentation.
3
+ """
2
4
 
3
5
  from . import functional
4
6
  from .base import AugmentedDataLoader, Compose, IdentityTransform, Transform
5
7
  from .transforms import (
6
- AmplitudeScale,
7
8
  BandstopFilter,
8
9
  ChannelsDropout,
9
- ChannelsReref,
10
10
  ChannelsShuffle,
11
11
  ChannelsSymmetry,
12
12
  FrequencyShift,
@@ -46,7 +46,5 @@ __all__ = [
46
46
  "Mixup",
47
47
  "SegmentationReconstruction",
48
48
  "MaskEncoding",
49
- "AmplitudeScale",
50
- "ChannelsReref",
51
49
  "functional",
52
50
  ]
@@ -31,8 +31,7 @@ Operation = Callable[
31
31
 
32
32
 
33
33
  class Transform(torch.nn.Module):
34
- """Basic transform class used for implementing data augmentation.
35
-
34
+ """Basic transform class used for implementing data augmentation
36
35
  operations.
37
36
 
38
37
  Parameters
@@ -43,7 +42,7 @@ class Transform(torch.nn.Module):
43
42
  probability : float, optional
44
43
  Float between 0 and 1 defining the uniform probability of applying the
45
44
  operation. Set to 1.0 by default (e.g always apply the operation).
46
- random_state : int, optional
45
+ random_state: int, optional
47
46
  Seed to be used to instantiate numpy random number generator instance.
48
47
  Used to decide whether or not to transform given the probability
49
48
  argument. Defaults to None.
@@ -126,7 +125,7 @@ class Transform(torch.nn.Module):
126
125
  return out_X
127
126
 
128
127
  def _get_mask(self, batch_size, device) -> torch.Tensor:
129
- """Samples whether to apply operation or not over the whole batch."""
128
+ """Samples whether to apply operation or not over the whole batch"""
130
129
  return torch.as_tensor(self.probability > self.rng.uniform(size=batch_size)).to(
131
130
  device
132
131
  )
@@ -154,7 +153,7 @@ class Compose(Transform):
154
153
 
155
154
  Parameters
156
155
  ----------
157
- transforms : list
156
+ transforms: list
158
157
  Sequence of Transforms to be composed.
159
158
  """
160
159
 
@@ -170,9 +169,7 @@ class Compose(Transform):
170
169
 
171
170
  def _make_collateable(transform, device=None):
172
171
  """Wraps a transform to make it collateable.
173
-
174
- with device control.
175
- """
172
+ with device control."""
176
173
 
177
174
  def _collate_fn(batch):
178
175
  collated_batch = default_collate(batch)
@@ -144,7 +144,7 @@ def ft_surrogate(
144
144
  EEG input example or batch.
145
145
  y : torch.Tensor
146
146
  EEG labels for the example or batch.
147
- phase_noise_magnitude : float
147
+ phase_noise_magnitude: float
148
148
  Float between 0 and 1 setting the range over which the phase
149
149
  perturbation is uniformly sampled:
150
150
  [0, `phase_noise_magnitude` * 2 * `pi`].
@@ -152,7 +152,7 @@ def ft_surrogate(
152
152
  Whether to sample phase perturbations independently for each channel or
153
153
  not. It is advised to set it to False when spatial information is
154
154
  important for the task, like in BCI.
155
- random_state : int | numpy.random.Generator, optional
155
+ random_state: int | numpy.random.Generator, optional
156
156
  Used to draw the phase perturbation. Defaults to None.
157
157
 
158
158
  Returns
@@ -289,10 +289,10 @@ def channels_shuffle(
289
289
  EEG input example or batch.
290
290
  y : torch.Tensor
291
291
  EEG labels for the example or batch.
292
- p_shuffle : float | None
292
+ p_shuffle: float | None
293
293
  Float between 0 and 1 setting the probability of including the channel
294
294
  in the set of permutted channels.
295
- random_state : int | numpy.random.Generator, optional
295
+ random_state: int | numpy.random.Generator, optional
296
296
  Seed to be used to instantiate numpy random number generator instance.
297
297
  Used to sample which channels to shuffle and to carry the shuffle.
298
298
  Defaults to None.
@@ -335,7 +335,7 @@ def gaussian_noise(
335
335
  EEG labels for the example or batch.
336
336
  std : float
337
337
  Standard deviation to use for the additive noise.
338
- random_state : int | numpy.random.Generator, optional
338
+ random_state: int | numpy.random.Generator, optional
339
339
  Seed to be used to instantiate numpy random number generator instance.
340
340
  Defaults to None.
341
341
 
@@ -468,8 +468,7 @@ def bandstop_filter(
468
468
  bandwidth: float,
469
469
  freqs_to_notch: npt.ArrayLike | None,
470
470
  ) -> tuple[torch.Tensor, torch.Tensor]:
471
- """Apply a band-stop filter with desired bandwidth at the desired frequency.
472
-
471
+ """Apply a band-stop filter with desired bandwidth at the desired frequency
473
472
  position.
474
473
 
475
474
  Suggested e.g. in [1]_ and [2]_
@@ -621,7 +620,6 @@ def _torch_legval(
621
620
  ) -> torch.Tensor:
622
621
  """
623
622
  Evaluate a Legendre series at points x.
624
-
625
623
  If `c` is of length `n + 1`, this function returns the value:
626
624
  .. math:: p(x) = c_0 * L_0(x) + c_1 * L_1(x) + ... + c_n * L_n(x)
627
625
  The parameter `x` is converted to an array only if it is a tuple or a
@@ -807,6 +805,12 @@ def _torch_make_interpolation_matrix(
807
805
  The interpolation matrix that maps good signals to the location
808
806
  of bad signals.
809
807
 
808
+ References
809
+ ----------
810
+ [1] Perrin, F., Pernier, J., Bertrand, O. and Echallier, JF. (1989).
811
+ Spherical splines for scalp potential and current density mapping.
812
+ Electroencephalography Clinical Neurophysiology, Feb; 72(2):184-7.
813
+
810
814
  Notes
811
815
  -----
812
816
  Code copied and modified from MNE-Python:
@@ -837,12 +841,6 @@ def _torch_make_interpolation_matrix(
837
841
  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
838
842
  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
839
843
  DAMAGE.
840
-
841
- References
842
- ----------
843
- [1] Perrin, F., Pernier, J., Bertrand, O. and Echallier, JF. (1989).
844
- Spherical splines for scalp potential and current density mapping.
845
- Electroencephalography Clinical Neurophysiology, Feb; 72(2):184-7.
846
844
  """
847
845
  pos_from = pos_from.clone()
848
846
  pos_to = pos_to.clone()
@@ -970,8 +968,7 @@ def sensors_rotation(
970
968
  angles: npt.ArrayLike,
971
969
  spherical_splines: bool,
972
970
  ) -> tuple[torch.Tensor, torch.Tensor]:
973
- """Interpolates EEG signals over sensors rotated around the desired axis.
974
-
971
+ """Interpolates EEG signals over sensors rotated around the desired axis
975
972
  with the desired angle.
976
973
 
977
974
  Suggested in [1]_
@@ -1030,7 +1027,7 @@ def mixup(
1030
1027
  lam : torch.Tensor
1031
1028
  Values between 0 and 1 setting the linear interpolation between
1032
1029
  examples.
1033
- idx_perm : torch.Tensor
1030
+ idx_perm: torch.Tensor
1034
1031
  Permuted indices of example that are mixed into original examples.
1035
1032
 
1036
1033
  Returns
@@ -1083,20 +1080,18 @@ def segmentation_reconstruction(
1083
1080
  EEG labels for the example or batch.
1084
1081
  n_segments : int
1085
1082
  Number of segments to use in the batch.
1086
- data_classes : list[tuple[int, torch.Tensor]]
1083
+ data_classes: list[tuple[int, torch.Tensor]]
1087
1084
  List of tuples. Each tuple contains the class index and the corresponding EEG data.
1088
- rand_indices : array-like
1085
+ rand_indices: array-like
1089
1086
  Array of indices that indicates which trial to use in each segment.
1090
- idx_shuffle : array-like
1087
+ idx_shuffle: array-like
1091
1088
  Array of indices to shuffle the new generated trials.
1092
-
1093
1089
  Returns
1094
1090
  -------
1095
1091
  torch.Tensor
1096
1092
  Transformed inputs.
1097
1093
  torch.Tensor
1098
1094
  Transformed labels.
1099
-
1100
1095
  References
1101
1096
  ----------
1102
1097
  .. [1] Lotte, F. (2015). Signal processing approaches to minimize or
@@ -1150,7 +1145,7 @@ def mask_encoding(
1150
1145
  segment_length: int,
1151
1146
  n_segments: int,
1152
1147
  ) -> tuple[torch.Tensor, torch.Tensor]:
1153
- """Mark encoding from Ding et al (2024) from [ding2024]_.
1148
+ """Mark encoding from Ding et al. (2024) from [ding2024]_.
1154
1149
 
1155
1150
  Replaces a contiguous part (or parts) of all channels by zeros
1156
1151
  (if more than one segment, it may overlap).
@@ -1217,7 +1212,7 @@ def channels_rereference(
1217
1212
  EEG input example or batch.
1218
1213
  y : torch.Tensor
1219
1214
  EEG labels for the example or batch.
1220
- random_state : int | numpy.random.Generator, optional
1215
+ random_state: int | numpy.random.Generator, optional
1221
1216
  Seed to be used to instantiate numpy random number generator instance.
1222
1217
  Defaults to None.
1223
1218
 
@@ -1234,6 +1229,7 @@ def channels_rereference(
1234
1229
  Representation Learning for Electroencephalogram Classification. Proceedings
1235
1230
  of the Machine Learning for Health NeurIPS Workshop, in Proceedings of Machine
1236
1231
  Learning Research 136:238-253
1232
+
1237
1233
  """
1238
1234
 
1239
1235
  rng = check_random_state(random_state)
@@ -1266,7 +1262,7 @@ def amplitude_scale(
1266
1262
  EEG labels for the example or batch.
1267
1263
  scale : tuple of floats
1268
1264
  Interval from which ypu sample the scaling value
1269
- random_state : int | numpy.random.Generator, optional
1265
+ random_state: int | numpy.random.Generator, optional
1270
1266
  Seed to be used to instantiate numpy random number generator instance.
1271
1267
  Defaults to None.
1272
1268
 
@@ -1283,6 +1279,7 @@ def amplitude_scale(
1283
1279
  Representation Learning for Electroencephalogram Classification. Proceedings
1284
1280
  of the Machine Learning for Health NeurIPS Workshop, in Proceedings of Machine
1285
1281
  Learning Research 136:238-253
1282
+
1286
1283
  """
1287
1284
 
1288
1285
  rng = torch.Generator()