Braindecode 1.3.0.dev171418921__tar.gz → 1.3.0.dev171607082__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 (181) hide show
  1. {braindecode-1.3.0.dev171418921/braindecode.egg-info → braindecode-1.3.0.dev171607082}/PKG-INFO +92 -101
  2. braindecode-1.3.0.dev171607082/README.rst +135 -0
  3. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/augmentation/__init__.py +3 -1
  4. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/augmentation/base.py +5 -8
  5. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/augmentation/functional.py +22 -25
  6. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/augmentation/transforms.py +42 -51
  7. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/classifier.py +8 -8
  8. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/__init__.py +3 -1
  9. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/base.py +13 -17
  10. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/bbci.py +14 -13
  11. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/bcicomp.py +5 -4
  12. braindecode-1.3.0.dev171418921/braindecode/datasets/bids/datasets.py → braindecode-1.3.0.dev171607082/braindecode/datasets/bids.py +18 -12
  13. braindecode-1.3.0.dev171607082/braindecode/datasets/chb_mit.py +172 -0
  14. braindecode-1.3.0.dev171418921/braindecode/datasets/bids/iterable.py → braindecode-1.3.0.dev171607082/braindecode/datasets/experimental.py +6 -8
  15. {braindecode-1.3.0.dev171418921/braindecode/datasets/bids → braindecode-1.3.0.dev171607082/braindecode/datasets}/hub.py +322 -364
  16. {braindecode-1.3.0.dev171418921/braindecode/datasets/bids → braindecode-1.3.0.dev171607082/braindecode/datasets}/hub_validation.py +1 -2
  17. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/mne.py +19 -19
  18. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/moabb.py +10 -10
  19. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/nmt.py +13 -20
  20. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/siena.py +3 -1
  21. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/sleep_physio_challe_18.py +5 -3
  22. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/sleep_physionet.py +5 -5
  23. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/tuh.py +18 -21
  24. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/xy.py +9 -10
  25. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datautil/__init__.py +3 -1
  26. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datautil/serialization.py +19 -21
  27. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datautil/util.py +12 -11
  28. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/eegneuralnet.py +4 -2
  29. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/functional/functions.py +10 -7
  30. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/functional/initialization.py +2 -3
  31. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/__init__.py +3 -5
  32. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/atcnet.py +27 -31
  33. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/attentionbasenet.py +37 -33
  34. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/attn_sleep.py +16 -16
  35. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/base.py +6 -6
  36. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/bendr.py +24 -48
  37. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/biot.py +5 -34
  38. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/config.py +2 -2
  39. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/contrawr.py +3 -3
  40. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/ctnet.py +1 -1
  41. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/deep4.py +1 -1
  42. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/deepsleepnet.py +3 -3
  43. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegconformer.py +3 -3
  44. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eeginception_erp.py +1 -1
  45. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eeginception_mi.py +3 -3
  46. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegitnet.py +2 -2
  47. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegminer.py +1 -1
  48. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegnet.py +2 -2
  49. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegnex.py +1 -1
  50. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegsimpleconv.py +1 -1
  51. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegsym.py +7 -7
  52. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/eegtcnet.py +3 -3
  53. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/fbcnet.py +1 -1
  54. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/fblightconvnet.py +2 -2
  55. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/fbmsnet.py +2 -2
  56. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/hybrid.py +1 -1
  57. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/ifnet.py +3 -3
  58. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/labram.py +6 -30
  59. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/luna.py +4 -59
  60. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/medformer.py +6 -8
  61. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/msvtnet.py +5 -5
  62. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/patchedtransformer.py +7 -7
  63. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/sccnet.py +1 -1
  64. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/shallow_fbcsp.py +1 -1
  65. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/signal_jepa.py +8 -35
  66. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/sinc_shallow.py +2 -2
  67. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/sleep_stager_blanco_2020.py +1 -1
  68. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/sleep_stager_chambon_2018.py +1 -1
  69. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/sparcnet.py +4 -4
  70. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/sstdpn.py +869 -869
  71. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/summary.csv +0 -2
  72. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/syncnet.py +1 -1
  73. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/tcn.py +2 -2
  74. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/tidnet.py +2 -2
  75. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/tsinception.py +2 -2
  76. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/usleep.py +4 -4
  77. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/models/util.py +0 -11
  78. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/__init__.py +1 -9
  79. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/activation.py +3 -29
  80. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/attention.py +0 -123
  81. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/blocks.py +0 -50
  82. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/convolution.py +0 -53
  83. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/filter.py +0 -31
  84. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/layers.py +0 -84
  85. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/linear.py +1 -22
  86. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/stats.py +0 -10
  87. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/util.py +0 -9
  88. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/wrapper.py +0 -17
  89. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/preprocessing/preprocess.py +0 -3
  90. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/regressor.py +11 -12
  91. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/samplers/ssl.py +1 -1
  92. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/util.py +28 -38
  93. braindecode-1.3.0.dev171607082/braindecode/version.py +1 -0
  94. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082/braindecode.egg-info}/PKG-INFO +92 -101
  95. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode.egg-info/SOURCES.txt +4 -12
  96. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode.egg-info/requires.txt +8 -6
  97. braindecode-1.3.0.dev171607082/docs/api.rst +701 -0
  98. braindecode-1.3.0.dev171607082/docs/cite.rst +72 -0
  99. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/docs/conf.py +1 -1
  100. braindecode-1.3.0.dev171607082/docs/help.rst +62 -0
  101. braindecode-1.3.0.dev171607082/docs/index.rst +50 -0
  102. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/docs/install/install.rst +6 -5
  103. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/docs/install/install_pip.rst +10 -16
  104. braindecode-1.3.0.dev171607082/docs/install/install_source.rst +71 -0
  105. braindecode-1.3.0.dev171607082/docs/models/categorization/attention.rst +31 -0
  106. braindecode-1.3.0.dev171607082/docs/models/categorization/channel.rst +31 -0
  107. braindecode-1.3.0.dev171607082/docs/models/categorization/convolution.rst +33 -0
  108. braindecode-1.3.0.dev171607082/docs/models/categorization/filterbank.rst +31 -0
  109. braindecode-1.3.0.dev171607082/docs/models/categorization/gnn.rst +27 -0
  110. braindecode-1.3.0.dev171607082/docs/models/categorization/interpretable.rst +31 -0
  111. braindecode-1.3.0.dev171607082/docs/models/categorization/lbm.rst +31 -0
  112. braindecode-1.3.0.dev171607082/docs/models/categorization/recurrent.rst +31 -0
  113. braindecode-1.3.0.dev171607082/docs/models/categorization/spd.rst +31 -0
  114. braindecode-1.3.0.dev171607082/docs/models/models.rst +78 -0
  115. braindecode-1.3.0.dev171607082/docs/models/models_categorization.rst +201 -0
  116. braindecode-1.3.0.dev171607082/docs/models/models_table.rst +191 -0
  117. braindecode-1.3.0.dev171607082/docs/models/models_visualization.rst +31 -0
  118. braindecode-1.3.0.dev171607082/docs/sg_execution_times.rst +112 -0
  119. braindecode-1.3.0.dev171607082/docs/whats_new.rst +451 -0
  120. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/pyproject.toml +12 -10
  121. braindecode-1.3.0.dev171418921/README.rst +0 -146
  122. braindecode-1.3.0.dev171418921/braindecode/datasets/bids/__init__.py +0 -54
  123. braindecode-1.3.0.dev171418921/braindecode/datasets/bids/format.py +0 -717
  124. braindecode-1.3.0.dev171418921/braindecode/datasets/bids/hub_format.py +0 -810
  125. braindecode-1.3.0.dev171418921/braindecode/datasets/bids/hub_io.py +0 -197
  126. braindecode-1.3.0.dev171418921/braindecode/datasets/chb_mit.py +0 -163
  127. braindecode-1.3.0.dev171418921/braindecode/models/brainmodule.py +0 -845
  128. braindecode-1.3.0.dev171418921/braindecode/models/reve.py +0 -843
  129. braindecode-1.3.0.dev171418921/braindecode/version.py +0 -1
  130. braindecode-1.3.0.dev171418921/docs/_templates/autosummary/class_in_subdir.rst +0 -37
  131. braindecode-1.3.0.dev171418921/docs/_templates/autosummary/function_in_subdir.rst +0 -12
  132. braindecode-1.3.0.dev171418921/docs/api.rst +0 -798
  133. braindecode-1.3.0.dev171418921/docs/cite.rst +0 -72
  134. braindecode-1.3.0.dev171418921/docs/help.rst +0 -62
  135. braindecode-1.3.0.dev171418921/docs/index.rst +0 -48
  136. braindecode-1.3.0.dev171418921/docs/install/install_source.rst +0 -78
  137. braindecode-1.3.0.dev171418921/docs/models/categorization/attention.rst +0 -35
  138. braindecode-1.3.0.dev171418921/docs/models/categorization/channel.rst +0 -36
  139. braindecode-1.3.0.dev171418921/docs/models/categorization/convolution.rst +0 -42
  140. braindecode-1.3.0.dev171418921/docs/models/categorization/filterbank.rst +0 -35
  141. braindecode-1.3.0.dev171418921/docs/models/categorization/gnn.rst +0 -27
  142. braindecode-1.3.0.dev171418921/docs/models/categorization/interpretable.rst +0 -35
  143. braindecode-1.3.0.dev171418921/docs/models/categorization/lbm.rst +0 -35
  144. braindecode-1.3.0.dev171418921/docs/models/categorization/recurrent.rst +0 -35
  145. braindecode-1.3.0.dev171418921/docs/models/categorization/spd.rst +0 -35
  146. braindecode-1.3.0.dev171418921/docs/models/models.rst +0 -89
  147. braindecode-1.3.0.dev171418921/docs/models/models_categorization.rst +0 -244
  148. braindecode-1.3.0.dev171418921/docs/models/models_table.rst +0 -209
  149. braindecode-1.3.0.dev171418921/docs/models/models_visualization.rst +0 -33
  150. braindecode-1.3.0.dev171418921/docs/sg_execution_times.rst +0 -110
  151. braindecode-1.3.0.dev171418921/docs/whats_new.rst +0 -788
  152. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/LICENSE.txt +0 -0
  153. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/MANIFEST.in +0 -0
  154. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/NOTICE.txt +0 -0
  155. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/__init__.py +0 -0
  156. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/registry.py +0 -0
  157. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datasets/utils.py +0 -0
  158. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datautil/channel_utils.py +0 -0
  159. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/datautil/hub_formats.py +0 -0
  160. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/functional/__init__.py +0 -0
  161. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/modules/parametrization.py +0 -0
  162. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/preprocessing/__init__.py +0 -0
  163. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/preprocessing/eegprep_preprocess.py +0 -0
  164. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/preprocessing/mne_preprocess.py +0 -0
  165. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/preprocessing/util.py +0 -0
  166. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/preprocessing/windowers.py +0 -0
  167. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/samplers/__init__.py +0 -0
  168. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/samplers/base.py +0 -0
  169. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/training/__init__.py +0 -0
  170. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/training/callbacks.py +0 -0
  171. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/training/losses.py +0 -0
  172. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/training/scoring.py +0 -0
  173. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/visualization/__init__.py +0 -0
  174. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/visualization/confusion_matrices.py +0 -0
  175. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode/visualization/gradients.py +0 -0
  176. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode.egg-info/dependency_links.txt +0 -0
  177. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/braindecode.egg-info/top_level.txt +0 -0
  178. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/docs/Makefile +0 -0
  179. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/docs/_templates/autosummary/class.rst +0 -0
  180. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/docs/_templates/autosummary/function.rst +0 -0
  181. {braindecode-1.3.0.dev171418921 → braindecode-1.3.0.dev171607082}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: braindecode
3
- Version: 1.3.0.dev171418921
3
+ Version: 1.3.0.dev171607082
4
4
  Summary: Deep learning software to decode EEG, ECG or MEG signals
5
5
  Author-email: Robin Tibor Schirrmeister <robintibor@gmail.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Alexandre Gramfort <agramfort@meta.com>
6
6
  Maintainer-email: Alexandre Gramfort <agramfort@meta.com>, Bruno Aristimunha Pinto <b.aristimunha@gmail.com>, Robin Tibor Schirrmeister <robintibor@gmail.com>
@@ -22,12 +22,17 @@ Requires-Python: >=3.11
22
22
  Description-Content-Type: text/x-rst
23
23
  License-File: LICENSE.txt
24
24
  License-File: NOTICE.txt
25
- Requires-Dist: torch>=2.2
26
- Requires-Dist: torchaudio>=2.0
27
25
  Requires-Dist: mne>=1.11.0
28
- Requires-Dist: mne_bids>=0.18
26
+ Requires-Dist: mne_bids>=0.16
27
+ Requires-Dist: numpy
28
+ Requires-Dist: pandas
29
+ Requires-Dist: scipy
30
+ Requires-Dist: matplotlib
29
31
  Requires-Dist: h5py
30
32
  Requires-Dist: skorch>=1.3.0
33
+ Requires-Dist: torch>=2.0
34
+ Requires-Dist: torchaudio>=2.0
35
+ Requires-Dist: einops
31
36
  Requires-Dist: joblib
32
37
  Requires-Dist: torchinfo
33
38
  Requires-Dist: wfdb
@@ -47,8 +52,6 @@ Requires-Dist: pytest-cov; extra == "tests"
47
52
  Requires-Dist: codecov; extra == "tests"
48
53
  Requires-Dist: pytest_cases; extra == "tests"
49
54
  Requires-Dist: mypy; extra == "tests"
50
- Requires-Dist: transformers>=4.57.0; extra == "tests"
51
- Requires-Dist: bids_validator; extra == "tests"
52
55
  Provides-Extra: typing
53
56
  Requires-Dist: exca==0.4; extra == "typing"
54
57
  Requires-Dist: numpydantic>=1.7; extra == "typing"
@@ -72,7 +75,6 @@ Requires-Dist: openneuro-py; extra == "docs"
72
75
  Requires-Dist: plotly; extra == "docs"
73
76
  Requires-Dist: shap; extra == "docs"
74
77
  Requires-Dist: nbformat; extra == "docs"
75
- Requires-Dist: transformers; extra == "docs"
76
78
  Provides-Extra: all
77
79
  Requires-Dist: braindecode[moabb]; extra == "all"
78
80
  Requires-Dist: braindecode[tests]; extra == "all"
@@ -82,149 +84,138 @@ Requires-Dist: braindecode[eegprep]; extra == "all"
82
84
  Requires-Dist: braindecode[typing]; extra == "all"
83
85
  Dynamic: license-file
84
86
 
85
- .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.8214376.svg
86
- :target: https://doi.org/10.5281/zenodo.8214376
87
- :alt: DOI
87
+ .. image:: https://zenodo.org/badge/232335424.svg
88
+ :target: https://doi.org/10.5281/zenodo.8214376
89
+ :alt: DOI
90
+
91
+ .. image:: https://badges.gitter.im/braindecodechat/community.svg
92
+ :alt: Join the chat at https://gitter.im/braindecodechat/community
93
+ :target: https://gitter.im/braindecodechat/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
88
94
 
89
95
  .. image:: https://github.com/braindecode/braindecode/workflows/docs/badge.svg
90
- :target: https://github.com/braindecode/braindecode/actions/workflows/docs.yml
91
- :alt: Docs Build Status
96
+ :target: https://github.com/braindecode/braindecode/actions
92
97
 
93
- .. image:: https://github.com/braindecode/braindecode/workflows/tests/badge.svg
94
- :target: https://github.com/braindecode/braindecode/actions/workflows/tests.yml
95
- :alt: Test Build Status
98
+ .. image:: https://circleci.com/gh/braindecode/braindecode.svg?style=svg
99
+ :target: https://circleci.com/gh/braindecode/braindecode
100
+ :alt: Doc build on CircleCI
96
101
 
97
102
  .. image:: https://codecov.io/gh/braindecode/braindecode/branch/master/graph/badge.svg
98
- :target: https://codecov.io/gh/braindecode/braindecode
99
- :alt: Code Coverage
100
-
101
- .. image:: https://img.shields.io/pypi/v/braindecode?color=blue&style=flat-square
102
- :target: https://pypi.org/project/braindecode/
103
- :alt: PyPI
103
+ :target: https://codecov.io/gh/braindecode/braindecode
104
+ :alt: Code Coverage
104
105
 
105
- .. image:: https://img.shields.io/pypi/v/braindecode?label=version&color=orange&style=flat-square
106
- :target: https://pypi.org/project/braindecode/
107
- :alt: Version
108
-
109
- .. image:: https://img.shields.io/pypi/pyversions/braindecode?style=flat-square
110
- :target: https://pypi.org/project/braindecode/
111
- :alt: Python versions
112
-
113
- .. image:: https://pepy.tech/badge/braindecode
114
- :target: https://pepy.tech/project/braindecode
115
- :alt: Downloads
116
106
 
117
107
  .. |Braindecode| image:: https://user-images.githubusercontent.com/42702466/177958779-b00628aa-9155-4c51-96d1-d8c345aff575.svg
118
-
119
108
  .. _braindecode: braindecode.org/
120
109
 
121
- #############
122
- Braindecode
123
- #############
110
+ Braindecode
111
+ ===========
124
112
 
125
113
  Braindecode is an open-source Python toolbox for decoding raw electrophysiological brain
126
114
  data with deep learning models. It includes dataset fetchers, data preprocessing and
127
- visualization tools, as well as implementations of several deep learning architectures
128
- and data augmentations for analysis of EEG, ECoG and MEG.
115
+ visualization tools, as well as implementations of several deep learning
116
+ architectures and data augmentations for analysis of EEG, ECoG and MEG.
117
+
118
+ For neuroscientists who want to work with deep learning and
119
+ deep learning researchers who want to work with neurophysiological data.
129
120
 
130
- For neuroscientists who want to work with deep learning and deep learning researchers
131
- who want to work with neurophysiological data.
132
121
 
133
- ##########################
134
- Installation Braindecode
135
- ##########################
122
+ Installation Braindecode
123
+ ========================
136
124
 
137
125
  1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
138
- 2. If you want to download EEG datasets from `MOABB
139
- <https://github.com/NeuroTechX/moabb>`_, install it:
126
+
127
+ 2. If you want to download EEG datasets from `MOABB <https://github.com/NeuroTechX/moabb>`_, install it:
140
128
 
141
129
  .. code-block:: bash
142
130
 
143
- pip install moabb
131
+ pip install moabb
144
132
 
145
133
  3. Install latest release of braindecode via pip:
146
134
 
147
135
  .. code-block:: bash
148
136
 
149
- pip install braindecode
137
+ pip install braindecode
138
+
139
+ 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>`__
140
+
150
141
 
151
- If you want to install the latest development version of braindecode, please refer to
152
- `contributing page
153
- <https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md>`__
142
+ Documentation
143
+ =============
154
144
 
155
- ###############
156
- Documentation
157
- ###############
145
+ Documentation is online under https://braindecode.org, both in the stable and dev versions.
158
146
 
159
- Documentation is online under https://braindecode.org, both in the stable and dev
160
- versions.
161
147
 
162
- #############################
163
- Contributing to Braindecode
164
- #############################
148
+ Contributing to Braindecode
149
+ ===========================
165
150
 
166
151
  Guidelines for contributing to the library can be found on the braindecode github:
167
152
 
168
153
  https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md
169
154
 
170
- ########
171
- Citing
172
- ########
155
+ Braindecode chat
156
+ ================
157
+
158
+ https://gitter.im/braindecodechat/community
159
+
160
+ Citing
161
+ ======
173
162
 
174
- If you use Braindecode in scientific work, please cite the software using the Zenodo DOI
175
- shown in the badge below:
163
+ If you use Braindecode in scientific work, please cite the software using the Zenodo DOI shown in the badge below:
176
164
 
177
165
  .. image:: https://zenodo.org/badge/232335424.svg
178
- :target: https://doi.org/10.5281/zenodo.8214376
179
- :alt: DOI
166
+ :target: https://doi.org/10.5281/zenodo.8214376
167
+ :alt: DOI
180
168
 
181
- Additionally, we highly encourage you to cite the article that originally introduced the
182
- Braindecode library and has served as a foundational reference for many works on deep
183
- learning with EEG recordings. Please use the following reference:
169
+ Additionally, we highly encourage you to cite the article that originally introduced
170
+ the Braindecode library and has served as a foundational reference for many works
171
+ on deep learning with EEG recordings. Please use the following reference:
184
172
 
185
173
  .. code-block:: bibtex
186
174
 
187
- @article {HBM:HBM23730,
188
- author = {Schirrmeister, Robin Tibor and Springenberg, Jost Tobias and Fiederer,
189
- Lukas Dominique Josef and Glasstetter, Martin and Eggensperger, Katharina and Tangermann, Michael and
190
- Hutter, Frank and Burgard, Wolfram and Ball, Tonio},
191
- title = {Deep learning with convolutional neural networks for EEG decoding and visualization},
192
- journal = {Human Brain Mapping},
193
- issn = {1097-0193},
194
- url = {http://dx.doi.org/10.1002/hbm.23730},
195
- doi = {10.1002/hbm.23730},
196
- month = {aug},
197
- year = {2017},
198
- keywords = {electroencephalography, EEG analysis, machine learning, end-to-end learning, brain–machine interface,
199
- brain–computer interface, model interpretability, brain mapping},
200
- }
175
+ @article {HBM:HBM23730,
176
+ author = {Schirrmeister, Robin Tibor and Springenberg, Jost Tobias and Fiederer,
177
+ Lukas Dominique Josef and Glasstetter, Martin and Eggensperger, Katharina and Tangermann, Michael and
178
+ Hutter, Frank and Burgard, Wolfram and Ball, Tonio},
179
+ title = {Deep learning with convolutional neural networks for EEG decoding and visualization},
180
+ journal = {Human Brain Mapping},
181
+ issn = {1097-0193},
182
+ url = {http://dx.doi.org/10.1002/hbm.23730},
183
+ doi = {10.1002/hbm.23730},
184
+ month = {aug},
185
+ year = {2017},
186
+ keywords = {electroencephalography, EEG analysis, machine learning, end-to-end learning, brain–machine interface,
187
+ brain–computer interface, model interpretability, brain mapping},
188
+ }
201
189
 
202
190
  as well as the `MNE-Python <https://mne.tools>`_ software that is used by braindecode:
203
191
 
204
192
  .. code-block:: bibtex
205
193
 
206
- @article{10.3389/fnins.2013.00267,
207
- 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},
208
- title={{MEG and EEG data analysis with MNE-Python}},
209
- journal={Frontiers in Neuroscience},
210
- volume={7},
211
- pages={267},
212
- year={2013},
213
- url={https://www.frontiersin.org/article/10.3389/fnins.2013.00267},
214
- doi={10.3389/fnins.2013.00267},
215
- issn={1662-453X},
216
- }
217
-
218
- ***********
219
- Licensing
220
- ***********
194
+ @article{10.3389/fnins.2013.00267,
195
+ 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},
196
+ title={{MEG and EEG data analysis with MNE-Python}},
197
+ journal={Frontiers in Neuroscience},
198
+ volume={7},
199
+ pages={267},
200
+ year={2013},
201
+ url={https://www.frontiersin.org/article/10.3389/fnins.2013.00267},
202
+ doi={10.3389/fnins.2013.00267},
203
+ issn={1662-453X},
204
+ }
205
+
206
+
207
+
208
+
209
+ Licensing
210
+ ^^^^^^^^^
221
211
 
222
212
  This project is primarily licensed under the BSD-3-Clause License.
223
213
 
224
214
  Additional Components
225
- =====================
215
+ ~~~~~~~~~~~~~~~~~~~~~
226
216
 
227
- Some components within this repository are licensed under the Creative Commons
228
- Attribution-NonCommercial 4.0 International License.
217
+ Some components within this repository are licensed under the Creative Commons Attribution-NonCommercial 4.0 International
218
+ License.
229
219
 
230
- Please refer to the ``LICENSE`` and ``NOTICE`` files for more detailed information.
220
+ Please refer to the ``LICENSE`` and ``NOTICE`` files for more detailed
221
+ information.
@@ -0,0 +1,135 @@
1
+ .. image:: https://zenodo.org/badge/232335424.svg
2
+ :target: https://doi.org/10.5281/zenodo.8214376
3
+ :alt: DOI
4
+
5
+ .. image:: https://badges.gitter.im/braindecodechat/community.svg
6
+ :alt: Join the chat at https://gitter.im/braindecodechat/community
7
+ :target: https://gitter.im/braindecodechat/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
8
+
9
+ .. image:: https://github.com/braindecode/braindecode/workflows/docs/badge.svg
10
+ :target: https://github.com/braindecode/braindecode/actions
11
+
12
+ .. image:: https://circleci.com/gh/braindecode/braindecode.svg?style=svg
13
+ :target: https://circleci.com/gh/braindecode/braindecode
14
+ :alt: Doc build on CircleCI
15
+
16
+ .. image:: https://codecov.io/gh/braindecode/braindecode/branch/master/graph/badge.svg
17
+ :target: https://codecov.io/gh/braindecode/braindecode
18
+ :alt: Code Coverage
19
+
20
+
21
+ .. |Braindecode| image:: https://user-images.githubusercontent.com/42702466/177958779-b00628aa-9155-4c51-96d1-d8c345aff575.svg
22
+ .. _braindecode: braindecode.org/
23
+
24
+ Braindecode
25
+ ===========
26
+
27
+ Braindecode is an open-source Python toolbox for decoding raw electrophysiological brain
28
+ data with deep learning models. It includes dataset fetchers, data preprocessing and
29
+ visualization tools, as well as implementations of several deep learning
30
+ architectures and data augmentations for analysis of EEG, ECoG and MEG.
31
+
32
+ For neuroscientists who want to work with deep learning and
33
+ deep learning researchers who want to work with neurophysiological data.
34
+
35
+
36
+ Installation Braindecode
37
+ ========================
38
+
39
+ 1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
40
+
41
+ 2. If you want to download EEG datasets from `MOABB <https://github.com/NeuroTechX/moabb>`_, install it:
42
+
43
+ .. code-block:: bash
44
+
45
+ pip install moabb
46
+
47
+ 3. Install latest release of braindecode via pip:
48
+
49
+ .. code-block:: bash
50
+
51
+ pip install braindecode
52
+
53
+ 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>`__
54
+
55
+
56
+ Documentation
57
+ =============
58
+
59
+ Documentation is online under https://braindecode.org, both in the stable and dev versions.
60
+
61
+
62
+ Contributing to Braindecode
63
+ ===========================
64
+
65
+ Guidelines for contributing to the library can be found on the braindecode github:
66
+
67
+ https://github.com/braindecode/braindecode/blob/master/CONTRIBUTING.md
68
+
69
+ Braindecode chat
70
+ ================
71
+
72
+ https://gitter.im/braindecodechat/community
73
+
74
+ Citing
75
+ ======
76
+
77
+ If you use Braindecode in scientific work, please cite the software using the Zenodo DOI shown in the badge below:
78
+
79
+ .. image:: https://zenodo.org/badge/232335424.svg
80
+ :target: https://doi.org/10.5281/zenodo.8214376
81
+ :alt: DOI
82
+
83
+ Additionally, we highly encourage you to cite the article that originally introduced
84
+ the Braindecode library and has served as a foundational reference for many works
85
+ on deep learning with EEG recordings. Please use the following reference:
86
+
87
+ .. code-block:: bibtex
88
+
89
+ @article {HBM:HBM23730,
90
+ author = {Schirrmeister, Robin Tibor and Springenberg, Jost Tobias and Fiederer,
91
+ Lukas Dominique Josef and Glasstetter, Martin and Eggensperger, Katharina and Tangermann, Michael and
92
+ Hutter, Frank and Burgard, Wolfram and Ball, Tonio},
93
+ title = {Deep learning with convolutional neural networks for EEG decoding and visualization},
94
+ journal = {Human Brain Mapping},
95
+ issn = {1097-0193},
96
+ url = {http://dx.doi.org/10.1002/hbm.23730},
97
+ doi = {10.1002/hbm.23730},
98
+ month = {aug},
99
+ year = {2017},
100
+ keywords = {electroencephalography, EEG analysis, machine learning, end-to-end learning, brain–machine interface,
101
+ brain–computer interface, model interpretability, brain mapping},
102
+ }
103
+
104
+ as well as the `MNE-Python <https://mne.tools>`_ software that is used by braindecode:
105
+
106
+ .. code-block:: bibtex
107
+
108
+ @article{10.3389/fnins.2013.00267,
109
+ 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},
110
+ title={{MEG and EEG data analysis with MNE-Python}},
111
+ journal={Frontiers in Neuroscience},
112
+ volume={7},
113
+ pages={267},
114
+ year={2013},
115
+ url={https://www.frontiersin.org/article/10.3389/fnins.2013.00267},
116
+ doi={10.3389/fnins.2013.00267},
117
+ issn={1662-453X},
118
+ }
119
+
120
+
121
+
122
+
123
+ Licensing
124
+ ^^^^^^^^^
125
+
126
+ This project is primarily licensed under the BSD-3-Clause License.
127
+
128
+ Additional Components
129
+ ~~~~~~~~~~~~~~~~~~~~~
130
+
131
+ Some components within this repository are licensed under the Creative Commons Attribution-NonCommercial 4.0 International
132
+ License.
133
+
134
+ Please refer to the ``LICENSE`` and ``NOTICE`` files for more detailed
135
+ information.
@@ -1,4 +1,6 @@
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
@@ -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()