braindecode 0.1.5__tar.gz → 0.1.5.2__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.5 → Braindecode-0.1.5.2}/Braindecode.egg-info/PKG-INFO +9 -3
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/Braindecode.egg-info/SOURCES.txt +2 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/Braindecode.egg-info/requires.txt +0 -1
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/PKG-INFO +9 -3
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/README.rst +8 -2
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/models/eegnet.py +3 -3
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/losses.py +10 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/index.rst +8 -2
- Braindecode-0.1.5.2/docs/notebooks/BBCI_Comparison.ipynb +827 -0
- Braindecode-0.1.5.2/docs/notebooks/BBCI_Data_Common_Average?.ipynb +1372 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/setup.py +2 -3
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/Braindecode.egg-info/dependency_links.txt +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/Braindecode.egg-info/not-zip-safe +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/Braindecode.egg-info/top_level.txt +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/LICENSE.txt +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/MANIFEST.in +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datasets/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datasets/bbci.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datasets/multiple.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/iterators.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/signal_target.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/signalproc.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/splitters.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/trial_segment.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/datautil/util.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/experiments/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/experiments/experiment.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/experiments/monitors.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/experiments/stopcriteria.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/mne_ext/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/mne_ext/signalproc.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/models/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/models/deep4.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/models/shallow_fbcsp.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/models/util.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/__init__.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/constraints.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/functions.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/init.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/modules.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/torch_ext/util.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/braindecode/util.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/Makefile +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/conf.py +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/notebooks/BBCI_Data.ipynb +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/notebooks/BBCI_Data_Start_Stop.ipynb +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/notebooks/BBCI_Data_Trialwise.ipynb +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/notebooks/Cropped_Decoding.ipynb +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/notebooks/Experiment_Class.ipynb +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/notebooks/TrialWise_Decoding.ipynb +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.datasets.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.datautil.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.experiments.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.mne_ext.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.models.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/braindecode.torch_ext.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/docs/source/modules.rst +0 -0
- {Braindecode-0.1.5 → Braindecode-0.1.5.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: Braindecode
|
|
3
|
-
Version: 0.1.5
|
|
3
|
+
Version: 0.1.5.2
|
|
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
|
|
@@ -22,7 +22,13 @@ Description: Note: The old braindecode repository has been moved to
|
|
|
22
22
|
|
|
23
23
|
1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
|
|
24
24
|
|
|
25
|
-
2. Install
|
|
25
|
+
2. Install numpy (necessary for resamply installation to work), e.g.:
|
|
26
|
+
|
|
27
|
+
.. code-block:: bash
|
|
28
|
+
|
|
29
|
+
pip install numpy
|
|
30
|
+
|
|
31
|
+
3. Install newest version of python-mne:
|
|
26
32
|
|
|
27
33
|
.. code-block:: bash
|
|
28
34
|
|
|
@@ -31,7 +37,7 @@ Description: Note: The old braindecode repository has been moved to
|
|
|
31
37
|
python setup.py install
|
|
32
38
|
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
4. Install braindecode via pip:
|
|
35
41
|
|
|
36
42
|
.. code-block:: bash
|
|
37
43
|
|
|
@@ -41,7 +41,9 @@ braindecode/torch_ext/util.py
|
|
|
41
41
|
docs/Makefile
|
|
42
42
|
docs/conf.py
|
|
43
43
|
docs/index.rst
|
|
44
|
+
docs/notebooks/BBCI_Comparison.ipynb
|
|
44
45
|
docs/notebooks/BBCI_Data.ipynb
|
|
46
|
+
docs/notebooks/BBCI_Data_Common_Average?.ipynb
|
|
45
47
|
docs/notebooks/BBCI_Data_Start_Stop.ipynb
|
|
46
48
|
docs/notebooks/BBCI_Data_Trialwise.ipynb
|
|
47
49
|
docs/notebooks/Cropped_Decoding.ipynb
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: Braindecode
|
|
3
|
-
Version: 0.1.5
|
|
3
|
+
Version: 0.1.5.2
|
|
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
|
|
@@ -22,7 +22,13 @@ Description: Note: The old braindecode repository has been moved to
|
|
|
22
22
|
|
|
23
23
|
1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
|
|
24
24
|
|
|
25
|
-
2. Install
|
|
25
|
+
2. Install numpy (necessary for resamply installation to work), e.g.:
|
|
26
|
+
|
|
27
|
+
.. code-block:: bash
|
|
28
|
+
|
|
29
|
+
pip install numpy
|
|
30
|
+
|
|
31
|
+
3. Install newest version of python-mne:
|
|
26
32
|
|
|
27
33
|
.. code-block:: bash
|
|
28
34
|
|
|
@@ -31,7 +37,7 @@ Description: Note: The old braindecode repository has been moved to
|
|
|
31
37
|
python setup.py install
|
|
32
38
|
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
4. Install braindecode via pip:
|
|
35
41
|
|
|
36
42
|
.. code-block:: bash
|
|
37
43
|
|
|
@@ -14,7 +14,13 @@ Installation
|
|
|
14
14
|
|
|
15
15
|
1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
|
|
16
16
|
|
|
17
|
-
2. Install
|
|
17
|
+
2. Install numpy (necessary for resamply installation to work), e.g.:
|
|
18
|
+
|
|
19
|
+
.. code-block:: bash
|
|
20
|
+
|
|
21
|
+
pip install numpy
|
|
22
|
+
|
|
23
|
+
3. Install newest version of python-mne:
|
|
18
24
|
|
|
19
25
|
.. code-block:: bash
|
|
20
26
|
|
|
@@ -23,7 +29,7 @@ Installation
|
|
|
23
29
|
python setup.py install
|
|
24
30
|
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
4. Install braindecode via pip:
|
|
27
33
|
|
|
28
34
|
.. code-block:: bash
|
|
29
35
|
|
|
@@ -46,7 +46,7 @@ class EEGNet(object):
|
|
|
46
46
|
model = nn.Sequential()
|
|
47
47
|
n_filters_1 = 16
|
|
48
48
|
model.add_module('conv_1', nn.Conv2d(
|
|
49
|
-
self.in_chans, n_filters_1, (1, 1), stride=1, bias=
|
|
49
|
+
self.in_chans, n_filters_1, (1, 1), stride=1, bias=True))
|
|
50
50
|
model.add_module('bnorm_1', nn.BatchNorm2d(
|
|
51
51
|
n_filters_1, momentum=0.1, affine=True),)
|
|
52
52
|
model.add_module('elu_1', Expression(elu))
|
|
@@ -60,7 +60,7 @@ class EEGNet(object):
|
|
|
60
60
|
model.add_module('conv_2', nn.Conv2d(
|
|
61
61
|
1, n_filters_2, self.second_kernel_size, stride=1,
|
|
62
62
|
padding=(self.second_kernel_size[0] // 2, 0),
|
|
63
|
-
bias=
|
|
63
|
+
bias=True))
|
|
64
64
|
model.add_module('bnorm_2',nn.BatchNorm2d(
|
|
65
65
|
n_filters_2, momentum=0.1, affine=True),)
|
|
66
66
|
model.add_module('elu_2', Expression(elu))
|
|
@@ -72,7 +72,7 @@ class EEGNet(object):
|
|
|
72
72
|
model.add_module('conv_3', nn.Conv2d(
|
|
73
73
|
n_filters_2, n_filters_3, self.third_kernel_size, stride=1,
|
|
74
74
|
padding=(self.third_kernel_size[0] // 2, 0),
|
|
75
|
-
bias=
|
|
75
|
+
bias=True))
|
|
76
76
|
model.add_module('bnorm_3',nn.BatchNorm2d(
|
|
77
77
|
n_filters_3, momentum=0.1, affine=True),)
|
|
78
78
|
model.add_module('elu_3', Expression(elu))
|
|
@@ -29,3 +29,13 @@ def log_categorical_crossentropy(logpreds, targets, dims=None):
|
|
|
29
29
|
for dim in dims:
|
|
30
30
|
result = th.sum(result, dim=int(dim))
|
|
31
31
|
return result
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def l2_loss(model):
|
|
35
|
+
losses = [th.sum(p * p) for p in model.parameters()]
|
|
36
|
+
return sum(losses)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def l1_loss(model):
|
|
40
|
+
losses = [th.sum(th.abs(p)) for p in model.parameters()]
|
|
41
|
+
return sum(losses)
|
|
@@ -11,7 +11,13 @@ Installation
|
|
|
11
11
|
|
|
12
12
|
1. Install pytorch from http://pytorch.org/ (you don't need to install torchvision).
|
|
13
13
|
|
|
14
|
-
2. Install
|
|
14
|
+
2. Install numpy (necessary for resamply installation to work), e.g.:
|
|
15
|
+
|
|
16
|
+
.. code-block:: bash
|
|
17
|
+
|
|
18
|
+
pip install numpy
|
|
19
|
+
|
|
20
|
+
3. Install newest version of python-mne:
|
|
15
21
|
|
|
16
22
|
.. code-block:: bash
|
|
17
23
|
|
|
@@ -20,7 +26,7 @@ Installation
|
|
|
20
26
|
python setup.py install
|
|
21
27
|
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
4. Install braindecode via pip:
|
|
24
30
|
|
|
25
31
|
.. code-block:: bash
|
|
26
32
|
|