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.
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/PKG-INFO +1 -1
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/PKG-INFO +1 -1
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/iterators.py +7 -1
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/trial_segment.py +3 -3
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/Experiment_Class.ipynb +1 -1
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/setup.py +1 -1
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/SOURCES.txt +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/dependency_links.txt +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/not-zip-safe +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/requires.txt +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/Braindecode.egg-info/top_level.txt +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/LICENSE.txt +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/MANIFEST.in +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/README.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datasets/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datasets/bbci.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datasets/multiple.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/signal_target.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/signalproc.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/splitters.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/datautil/util.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/experiment.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/monitors.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/experiments/stopcriteria.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/mne_ext/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/mne_ext/signalproc.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/models/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/models/deep4.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/models/shallow_fbcsp.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/__init__.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/constraints.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/functions.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/losses.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/modules.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/torch_ext/util.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/braindecode/util.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/Makefile +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/conf.py +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/index.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/BBCI_Data.ipynb +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/BBCI_Data_Start_Stop.ipynb +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/Cropped_Decoding.ipynb +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/notebooks/TrialWise_Decoding.ipynb +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.datasets.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.datautil.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.experiments.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.mne_ext.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.models.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/braindecode.torch_ext.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/docs/source/modules.rst +0 -0
- {Braindecode-0.1.4.2 → Braindecode-0.1.4.4}/setup.cfg +0 -0
|
@@ -77,7 +77,13 @@ class BalancedBatchSizeIterator(object):
|
|
|
77
77
|
rng=self.rng,
|
|
78
78
|
shuffle=shuffle)
|
|
79
79
|
for batch_inds in batches:
|
|
80
|
-
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|