braindecode 0.1.4.2__tar.gz → 0.1.4.4__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 (55) hide show
  1. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/PKG-INFO +1 -1
  2. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/PKG-INFO +1 -1
  3. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/iterators.py +7 -1
  4. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/trial_segment.py +3 -3
  5. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/Experiment_Class.ipynb +1 -1
  6. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/setup.py +1 -1
  7. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/SOURCES.txt +0 -0
  8. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/dependency_links.txt +0 -0
  9. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/not-zip-safe +0 -0
  10. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/requires.txt +0 -0
  11. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/top_level.txt +0 -0
  12. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/LICENSE.txt +0 -0
  13. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/MANIFEST.in +0 -0
  14. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/README.rst +0 -0
  15. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/__init__.py +0 -0
  16. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datasets/__init__.py +0 -0
  17. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datasets/bbci.py +0 -0
  18. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datasets/multiple.py +0 -0
  19. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/__init__.py +0 -0
  20. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/signal_target.py +0 -0
  21. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/signalproc.py +0 -0
  22. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/splitters.py +0 -0
  23. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/util.py +0 -0
  24. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/__init__.py +0 -0
  25. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/experiment.py +0 -0
  26. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/monitors.py +0 -0
  27. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/stopcriteria.py +0 -0
  28. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/mne_ext/__init__.py +0 -0
  29. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/mne_ext/signalproc.py +0 -0
  30. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/models/__init__.py +0 -0
  31. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/models/deep4.py +0 -0
  32. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/models/shallow_fbcsp.py +0 -0
  33. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/__init__.py +0 -0
  34. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/constraints.py +0 -0
  35. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/functions.py +0 -0
  36. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/losses.py +0 -0
  37. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/modules.py +0 -0
  38. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/util.py +0 -0
  39. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/util.py +0 -0
  40. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/Makefile +0 -0
  41. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/conf.py +0 -0
  42. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/index.rst +0 -0
  43. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/BBCI_Data.ipynb +0 -0
  44. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/BBCI_Data_Start_Stop.ipynb +0 -0
  45. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/Cropped_Decoding.ipynb +0 -0
  46. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/TrialWise_Decoding.ipynb +0 -0
  47. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.datasets.rst +0 -0
  48. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.datautil.rst +0 -0
  49. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.experiments.rst +0 -0
  50. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.mne_ext.rst +0 -0
  51. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.models.rst +0 -0
  52. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.rst +0 -0
  53. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.torch_ext.rst +0 -0
  54. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/modules.rst +0 -0
  55. {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: Braindecode
3
- Version: 0.1.4.2
3
+ Version: 0.1.4.4
4
4
  Summary: A deep learning toolbox to decode raw time-domain EEG.
5
5
  Home-page: https://github.com/robintibor/braindecode
6
6
  Author: Robin Tibor Schirrmeister
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: Braindecode
3
- Version: 0.1.4.2
3
+ Version: 0.1.4.4
4
4
  Summary: A deep learning toolbox to decode raw time-domain EEG.
5
5
  Home-page: https://github.com/robintibor/braindecode
6
6
  Author: Robin Tibor Schirrmeister
@@ -77,7 +77,13 @@ class BalancedBatchSizeIterator(object):
77
77
  rng=self.rng,
78
78
  shuffle=shuffle)
79
79
  for batch_inds in batches:
80
- yield (dataset.X[batch_inds], dataset.y[batch_inds])
80
+ batch_X = dataset.X[batch_inds]
81
+ batch_y = dataset.y[batch_inds]
82
+
83
+ # add empty fourth dimension if necessary
84
+ if batch_X.ndim == 3:
85
+ batch_X = batch_X[:, :, :, None]
86
+ yield (batch_X, batch_y)
81
87
 
82
88
  def reset_rng(self):
83
89
  self.rng = RandomState(328774)
@@ -59,10 +59,10 @@ def create_signal_target_from_start_and_ival(
59
59
  y = []
60
60
 
61
61
  for i_sample, mrk_code in zip(events[:, 0], events[:, 1]):
62
- start_sample = i_sample + start_offset
63
- stop_sample = i_sample + stop_offset
64
- name, this_y = mrk_code_to_name_and_y[mrk_code]
62
+ start_sample = int(i_sample) + start_offset
63
+ stop_sample = int(i_sample) + stop_offset
65
64
  if mrk_code in mrk_code_to_name_and_y:
65
+ name, this_y = mrk_code_to_name_and_y[mrk_code]
66
66
  X.append(data[:, start_sample:stop_sample].astype(np.float32))
67
67
  y.append(np.int64(this_y))
68
68
  class_to_n_trials[name] += 1
@@ -41,7 +41,7 @@
41
41
  "\n",
42
42
  "<div class='alert alert-warning'>\n",
43
43
  "\n",
44
- "It is not necessary to use the Experiment class to use other functionality of Braindecode. Feel free to ignore it :)\n",
44
+ "It is not necessary to use the Experiment class to use the other functionality of Braindecode. Feel free to ignore it :)\n",
45
45
  "\n",
46
46
  "</div>"
47
47
  ]
@@ -15,7 +15,7 @@ setup(
15
15
  # Versions should comply with PEP440. For a discussion on single-sourcing
16
16
  # the version across setup.py and the project code, see
17
17
  # http://packaging.python.org/en/latest/tutorial.html#version
18
- version='0.1.4.02',
18
+ version='0.1.4.04',
19
19
 
20
20
  description='A deep learning toolbox to decode raw time-domain EEG.',
21
21
  long_description=long_description,
File without changes
File without changes
File without changes
File without changes