braindecode 0.4.6__tar.gz → 0.4.7__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.6 → Braindecode-0.4.7}/Braindecode.egg-info/PKG-INFO +1 -1
- {Braindecode-0.4.6 → Braindecode-0.4.7}/PKG-INFO +1 -1
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/splitters.py +1 -1
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/modules.py +8 -2
- Braindecode-0.4.7/braindecode/version.py +1 -0
- Braindecode-0.4.6/braindecode/version.py +0 -1
- {Braindecode-0.4.6 → Braindecode-0.4.7}/Braindecode.egg-info/SOURCES.txt +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/Braindecode.egg-info/dependency_links.txt +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/Braindecode.egg-info/not-zip-safe +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/Braindecode.egg-info/requires.txt +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/Braindecode.egg-info/top_level.txt +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/LICENSE.txt +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/MANIFEST.in +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/README.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datasets/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datasets/bbci.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datasets/bcic_iv_2a.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datasets/multiple.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datasets/sensor_positions.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/iterators.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/signal_target.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/signalproc.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/trial_segment.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/datautil/util.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/experiments/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/experiments/experiment.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/experiments/loggers.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/experiments/monitors.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/experiments/stopcriteria.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/mne_ext/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/mne_ext/signalproc.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/base.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/deep4.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/eegnet.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/hybrid.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/shallow_fbcsp.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/models/util.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/constraints.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/functions.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/init.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/losses.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/optimizers.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/schedulers.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/torch_ext/util.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/util.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/visualization/__init__.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/visualization/input_windows.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/visualization/perturbation.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/visualization/plot.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/braindecode/visualization/sinfit.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/Makefile +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/conf.py +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/index.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/BBCI_Data.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/BBCI_Data_Start_Stop.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/BBCI_Data_Trialwise.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/Cropped_Decoding.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/Cropped_Manual_Training_Loop.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/Cropped_Trialwise_Explanation_Figures.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/Trialwise_Decoding.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/Trialwise_Manual_Training_Loop.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/notebooks/visualization/Perturbation.ipynb +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.datasets.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.datautil.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.experiments.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.mne_ext.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.models.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.torch_ext.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/braindecode.visualization.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/docs/source/modules.rst +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/setup.cfg +0 -0
- {Braindecode-0.4.6 → Braindecode-0.4.7}/setup.py +0 -0
|
@@ -179,7 +179,7 @@ def split_into_train_test(dataset, n_folds, i_test_fold, rng=None):
|
|
|
179
179
|
folds = get_balanced_batches(n_trials, rng, shuffle,
|
|
180
180
|
n_batches=n_folds)
|
|
181
181
|
test_inds = folds[i_test_fold]
|
|
182
|
-
all_inds = list(range(
|
|
182
|
+
all_inds = list(range(n_trials))
|
|
183
183
|
train_inds = np.setdiff1d(all_inds, test_inds)
|
|
184
184
|
assert np.intersect1d(train_inds, test_inds).size == 0
|
|
185
185
|
assert np.array_equal(np.sort(np.union1d(train_inds, test_inds)),
|
|
@@ -28,8 +28,10 @@ class Expression(torch.nn.Module):
|
|
|
28
28
|
expression_str = "{:s} {:s}".format(
|
|
29
29
|
self.expression_fn.func.__name__,
|
|
30
30
|
str(self.expression_fn.kwargs))
|
|
31
|
-
|
|
31
|
+
elif hasattr(self.expression_fn, '__name__'):
|
|
32
32
|
expression_str = self.expression_fn.__name__
|
|
33
|
+
else:
|
|
34
|
+
expression_str = repr(self.expression_fn)
|
|
33
35
|
return (self.__class__.__name__ + '(' +
|
|
34
36
|
'expression=' + str(expression_str) + ')')
|
|
35
37
|
|
|
@@ -46,12 +48,15 @@ class AvgPool2dWithConv(torch.nn.Module):
|
|
|
46
48
|
Stride of the pooling operation.
|
|
47
49
|
dilation: int or (int,int)
|
|
48
50
|
Dilation applied to the pooling filter.
|
|
51
|
+
padding: int or (int,int)
|
|
52
|
+
Padding applied before the pooling operation.
|
|
49
53
|
"""
|
|
50
|
-
def __init__(self, kernel_size, stride, dilation=1):
|
|
54
|
+
def __init__(self, kernel_size, stride, dilation=1, padding=0):
|
|
51
55
|
super(AvgPool2dWithConv, self).__init__()
|
|
52
56
|
self.kernel_size = kernel_size
|
|
53
57
|
self.stride = stride
|
|
54
58
|
self.dilation = dilation
|
|
59
|
+
self.padding = padding
|
|
55
60
|
# don't name them "weights" to
|
|
56
61
|
# make sure these are not accidentally used by some procedure
|
|
57
62
|
# that initializes parameters or something
|
|
@@ -79,6 +84,7 @@ class AvgPool2dWithConv(torch.nn.Module):
|
|
|
79
84
|
|
|
80
85
|
pooled = F.conv2d(x, self._pool_weights, bias=None, stride=self.stride,
|
|
81
86
|
dilation=self.dilation,
|
|
87
|
+
padding=self.padding,
|
|
82
88
|
groups=in_channels,)
|
|
83
89
|
return pooled
|
|
84
90
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.7"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.6"
|
|
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
|
|
File without changes
|
|
File without changes
|
{Braindecode-0.4.6 → Braindecode-0.4.7}/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
|