braindecode 0.4.0__tar.gz → 0.4.1__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.4.0 → Braindecode-0.4.1}/Braindecode.egg-info/PKG-INFO +1 -1
- {Braindecode-0.4.0 → Braindecode-0.4.1}/PKG-INFO +1 -1
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/base.py +1 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/eegnet.py +1 -1
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/hybrid.py +15 -1
- Braindecode-0.4.1/braindecode/version.py +1 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/Cropped_Decoding.ipynb +3 -1
- Braindecode-0.4.0/braindecode/version.py +0 -1
- {Braindecode-0.4.0 → Braindecode-0.4.1}/Braindecode.egg-info/SOURCES.txt +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/Braindecode.egg-info/dependency_links.txt +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/Braindecode.egg-info/not-zip-safe +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/Braindecode.egg-info/requires.txt +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/Braindecode.egg-info/top_level.txt +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/LICENSE.txt +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/MANIFEST.in +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/README.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datasets/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datasets/bbci.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datasets/bcic_iv_2a.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datasets/multiple.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datasets/sensor_positions.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/iterators.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/signal_target.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/signalproc.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/splitters.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/trial_segment.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/datautil/util.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/experiments/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/experiments/experiment.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/experiments/loggers.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/experiments/monitors.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/experiments/stopcriteria.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/mne_ext/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/mne_ext/signalproc.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/deep4.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/shallow_fbcsp.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/models/util.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/constraints.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/functions.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/init.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/losses.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/modules.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/optimizers.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/schedulers.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/torch_ext/util.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/util.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/visualization/__init__.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/visualization/input_windows.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/visualization/perturbation.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/visualization/plot.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/braindecode/visualization/sinfit.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/Makefile +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/conf.py +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/index.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/BBCI_Data.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/BBCI_Data_Start_Stop.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/BBCI_Data_Trialwise.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/Cropped_Manual_Training_Loop.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/Cropped_Trialwise_Explanation_Figures.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/Trialwise_Decoding.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/Trialwise_Manual_Training_Loop.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/visualization/Perturbation.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/visualization/Perturbation_Old.ipynb +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.datasets.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.datautil.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.experiments.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.mne_ext.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.models.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.torch_ext.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/braindecode.visualization.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/docs/source/modules.rst +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/setup.cfg +0 -0
- {Braindecode-0.4.0 → Braindecode-0.4.1}/setup.py +0 -0
|
@@ -137,6 +137,7 @@ class BaseModel(object):
|
|
|
137
137
|
"which is the number of timesteps that will be pushed through"
|
|
138
138
|
"the network in a single pass.")
|
|
139
139
|
if self.cropped:
|
|
140
|
+
self.network.eval()
|
|
140
141
|
test_input = np_to_var(train_X[0:1], dtype=np.float32)
|
|
141
142
|
while len(test_input.size()) < 4:
|
|
142
143
|
test_input = test_input.unsqueeze(-1)
|
|
@@ -9,6 +9,20 @@ from braindecode.models.util import to_dense_prediction_model
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class HybridNet(nn.Module, BaseModel):
|
|
12
|
+
"""
|
|
13
|
+
Hybrid ConvNet model from [3]_.
|
|
14
|
+
|
|
15
|
+
Very hardcoded at the moment.
|
|
16
|
+
|
|
17
|
+
References
|
|
18
|
+
----------
|
|
19
|
+
|
|
20
|
+
.. [3] Schirrmeister, R. T., Springenberg, J. T., Fiederer, L. D. J.,
|
|
21
|
+
Glasstetter, M., Eggensperger, K., Tangermann, M., ... & Ball, T. (2017).
|
|
22
|
+
Deep learning with convolutional neural networks for EEG decoding and
|
|
23
|
+
visualization.
|
|
24
|
+
arXiv preprint arXiv:1703.05051.
|
|
25
|
+
"""
|
|
12
26
|
def __init__(self, n_chans, n_classes, input_time_length):
|
|
13
27
|
super(HybridNet, self).__init__()
|
|
14
28
|
deep_model = Deep4Net(n_chans, n_classes, n_filters_time=20,
|
|
@@ -74,4 +88,4 @@ class HybridNet(nn.Module, BaseModel):
|
|
|
74
88
|
linear_out = self.final_conv(merged_out)
|
|
75
89
|
softmaxed = nn.LogSoftmax(dim=1)(linear_out)
|
|
76
90
|
squeezed = softmaxed.squeeze(3)
|
|
77
|
-
return squeezed
|
|
91
|
+
return squeezed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.0"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{Braindecode-0.4.0 → Braindecode-0.4.1}/docs/notebooks/Cropped_Trialwise_Explanation_Figures.ipynb
RENAMED
|
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
|