|
a |
|
b/docs/api.rst |
|
|
1 |
:orphan: |
|
|
2 |
|
|
|
3 |
.. _api_reference: |
|
|
4 |
|
|
|
5 |
============= |
|
|
6 |
API Reference |
|
|
7 |
============= |
|
|
8 |
|
|
|
9 |
This is the reference for classes (``CamelCase`` names) and functions |
|
|
10 |
(``underscore_case`` names) of Braindecode. |
|
|
11 |
|
|
|
12 |
.. contents:: |
|
|
13 |
:local: |
|
|
14 |
:depth: 2 |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
:py:mod:`braindecode`: |
|
|
18 |
|
|
|
19 |
.. automodule:: braindecode |
|
|
20 |
:no-members: |
|
|
21 |
:no-inherited-members: |
|
|
22 |
|
|
|
23 |
Classifier |
|
|
24 |
========== |
|
|
25 |
|
|
|
26 |
:py:mod:`braindecode.classifier`: |
|
|
27 |
|
|
|
28 |
.. currentmodule:: braindecode.classifier |
|
|
29 |
|
|
|
30 |
.. autosummary:: |
|
|
31 |
:toctree: generated/ |
|
|
32 |
|
|
|
33 |
EEGClassifier |
|
|
34 |
|
|
|
35 |
Regressor |
|
|
36 |
========= |
|
|
37 |
|
|
|
38 |
:py:mod:`braindecode.regressor`: |
|
|
39 |
|
|
|
40 |
.. currentmodule:: braindecode.regressor |
|
|
41 |
|
|
|
42 |
.. autosummary:: |
|
|
43 |
:toctree: generated/ |
|
|
44 |
|
|
|
45 |
EEGRegressor |
|
|
46 |
|
|
|
47 |
Models |
|
|
48 |
====== |
|
|
49 |
|
|
|
50 |
:py:mod:`braindecode.models.base`: |
|
|
51 |
|
|
|
52 |
.. currentmodule:: braindecode.models |
|
|
53 |
|
|
|
54 |
.. autosummary:: |
|
|
55 |
:toctree: generated/ |
|
|
56 |
|
|
|
57 |
EEGModuleMixin |
|
|
58 |
|
|
|
59 |
:py:mod:`braindecode.models`: |
|
|
60 |
|
|
|
61 |
.. currentmodule:: braindecode.models |
|
|
62 |
|
|
|
63 |
.. autosummary:: |
|
|
64 |
:toctree: generated/ |
|
|
65 |
|
|
|
66 |
ATCNet |
|
|
67 |
AttentionBaseNet |
|
|
68 |
BDTCN |
|
|
69 |
BIOT |
|
|
70 |
ContraWR |
|
|
71 |
CTNet |
|
|
72 |
Deep4Net |
|
|
73 |
DeepSleepNet |
|
|
74 |
EEGConformer |
|
|
75 |
EEGInceptionERP |
|
|
76 |
EEGInceptionMI |
|
|
77 |
EEGITNet |
|
|
78 |
EEGMiner |
|
|
79 |
EEGNetv1 |
|
|
80 |
EEGNetv4 |
|
|
81 |
EEGNeX |
|
|
82 |
EEGResNet |
|
|
83 |
EEGSimpleConv |
|
|
84 |
EEGTCNet |
|
|
85 |
FBCNet |
|
|
86 |
FBLightConvNet |
|
|
87 |
FBMSNet |
|
|
88 |
IFNet |
|
|
89 |
Labram |
|
|
90 |
MSVTNet |
|
|
91 |
SCCNet |
|
|
92 |
ShallowFBCSPNet |
|
|
93 |
SignalJEPA |
|
|
94 |
SignalJEPA_Contextual |
|
|
95 |
SignalJEPA_PostLocal |
|
|
96 |
SignalJEPA_PreLocal |
|
|
97 |
SincShallowNet |
|
|
98 |
SleepStagerBlanco2020 |
|
|
99 |
SleepStagerChambon2018 |
|
|
100 |
SleepStagerEldele2021 |
|
|
101 |
SPARCNet |
|
|
102 |
SyncNet |
|
|
103 |
TIDNet |
|
|
104 |
TSceptionV1 |
|
|
105 |
USleep |
|
|
106 |
|
|
|
107 |
.. currentmodule:: braindecode.models.modules |
|
|
108 |
|
|
|
109 |
:py:mod:`braindecode.models`: |
|
|
110 |
|
|
|
111 |
.. autosummary:: |
|
|
112 |
:toctree: generated/ |
|
|
113 |
|
|
|
114 |
FilterBankLayer |
|
|
115 |
GeneralizedGaussianFilter |
|
|
116 |
|
|
|
117 |
Training |
|
|
118 |
======== |
|
|
119 |
|
|
|
120 |
:py:mod:`braindecode.training`: |
|
|
121 |
|
|
|
122 |
.. currentmodule:: braindecode.training |
|
|
123 |
|
|
|
124 |
.. autosummary:: |
|
|
125 |
:toctree: generated/ |
|
|
126 |
|
|
|
127 |
CroppedLoss |
|
|
128 |
TimeSeriesLoss |
|
|
129 |
CroppedTrialEpochScoring |
|
|
130 |
CroppedTimeSeriesEpochScoring |
|
|
131 |
PostEpochTrainScoring |
|
|
132 |
mixup_criterion |
|
|
133 |
trial_preds_from_window_preds |
|
|
134 |
predict_trials |
|
|
135 |
|
|
|
136 |
Datasets |
|
|
137 |
======== |
|
|
138 |
|
|
|
139 |
:py:mod:`braindecode.datasets`: |
|
|
140 |
|
|
|
141 |
.. currentmodule:: braindecode.datasets |
|
|
142 |
|
|
|
143 |
.. autosummary:: |
|
|
144 |
:toctree: generated/ |
|
|
145 |
|
|
|
146 |
BaseDataset |
|
|
147 |
BaseConcatDataset |
|
|
148 |
BIDSDataset |
|
|
149 |
BIDSEpochsDataset |
|
|
150 |
WindowsDataset |
|
|
151 |
MOABBDataset |
|
|
152 |
HGD |
|
|
153 |
BNCI2014001 |
|
|
154 |
TUH |
|
|
155 |
TUHAbnormal |
|
|
156 |
NMT |
|
|
157 |
SleepPhysionet |
|
|
158 |
BCICompetitionIVDataset4 |
|
|
159 |
create_from_X_y |
|
|
160 |
create_from_mne_raw |
|
|
161 |
create_from_mne_epochs |
|
|
162 |
|
|
|
163 |
Preprocessing |
|
|
164 |
============= |
|
|
165 |
|
|
|
166 |
:py:mod:`braindecode.preprocessing`: |
|
|
167 |
|
|
|
168 |
.. currentmodule:: braindecode.preprocessing |
|
|
169 |
|
|
|
170 |
.. autosummary:: |
|
|
171 |
:toctree: generated/ |
|
|
172 |
|
|
|
173 |
create_windows_from_events |
|
|
174 |
create_fixed_length_windows |
|
|
175 |
create_windows_from_target_channels |
|
|
176 |
exponential_moving_demean |
|
|
177 |
exponential_moving_standardize |
|
|
178 |
filterbank |
|
|
179 |
preprocess |
|
|
180 |
Preprocessor |
|
|
181 |
Resample |
|
|
182 |
DropChannels |
|
|
183 |
SetEEGReference |
|
|
184 |
Filter |
|
|
185 |
Pick |
|
|
186 |
Crop |
|
|
187 |
|
|
|
188 |
Data Utils |
|
|
189 |
========== |
|
|
190 |
|
|
|
191 |
:py:mod:`braindecode.datautil`: |
|
|
192 |
|
|
|
193 |
.. currentmodule:: braindecode.datautil |
|
|
194 |
|
|
|
195 |
.. autosummary:: |
|
|
196 |
:toctree: generated/ |
|
|
197 |
|
|
|
198 |
save_concat_dataset |
|
|
199 |
load_concat_dataset |
|
|
200 |
|
|
|
201 |
Samplers |
|
|
202 |
======== |
|
|
203 |
|
|
|
204 |
:py:mod:`braindecode.samplers`: |
|
|
205 |
|
|
|
206 |
.. currentmodule:: braindecode.samplers |
|
|
207 |
|
|
|
208 |
.. autosummary:: |
|
|
209 |
:toctree: generated/ |
|
|
210 |
|
|
|
211 |
RecordingSampler |
|
|
212 |
DistributedRecordingSampler |
|
|
213 |
SequenceSampler |
|
|
214 |
RelativePositioningSampler |
|
|
215 |
DistributedRelativePositioningSampler |
|
|
216 |
BalancedSequenceSampler |
|
|
217 |
|
|
|
218 |
.. _augmentation_api: |
|
|
219 |
|
|
|
220 |
Augmentation |
|
|
221 |
============ |
|
|
222 |
|
|
|
223 |
:py:mod:`braindecode.augmentation`: |
|
|
224 |
|
|
|
225 |
.. currentmodule:: braindecode.augmentation |
|
|
226 |
|
|
|
227 |
.. autosummary:: |
|
|
228 |
:toctree: generated/ |
|
|
229 |
|
|
|
230 |
Transform |
|
|
231 |
IdentityTransform |
|
|
232 |
Compose |
|
|
233 |
AugmentedDataLoader |
|
|
234 |
TimeReverse |
|
|
235 |
SignFlip |
|
|
236 |
FTSurrogate |
|
|
237 |
ChannelsShuffle |
|
|
238 |
ChannelsDropout |
|
|
239 |
GaussianNoise |
|
|
240 |
ChannelsSymmetry |
|
|
241 |
SmoothTimeMask |
|
|
242 |
BandstopFilter |
|
|
243 |
FrequencyShift |
|
|
244 |
SensorsRotation |
|
|
245 |
SensorsZRotation |
|
|
246 |
SensorsYRotation |
|
|
247 |
SensorsXRotation |
|
|
248 |
Mixup |
|
|
249 |
SegmentationReconstruction |
|
|
250 |
MaskEncoding |
|
|
251 |
|
|
|
252 |
functional.identity |
|
|
253 |
functional.time_reverse |
|
|
254 |
functional.sign_flip |
|
|
255 |
functional.ft_surrogate |
|
|
256 |
functional.channels_dropout |
|
|
257 |
functional.channels_shuffle |
|
|
258 |
functional.channels_permute |
|
|
259 |
functional.gaussian_noise |
|
|
260 |
functional.smooth_time_mask |
|
|
261 |
functional.bandstop_filter |
|
|
262 |
functional.frequency_shift |
|
|
263 |
functional.sensors_rotation |
|
|
264 |
functional.mixup |
|
|
265 |
functional.segmentation_reconstruction |
|
|
266 |
functional.mask_encoding |
|
|
267 |
|
|
|
268 |
|
|
|
269 |
Utils |
|
|
270 |
===== |
|
|
271 |
|
|
|
272 |
:py:mod:`braindecode.util`: |
|
|
273 |
|
|
|
274 |
.. currentmodule:: braindecode.util |
|
|
275 |
|
|
|
276 |
.. autosummary:: |
|
|
277 |
:toctree: generated/ |
|
|
278 |
|
|
|
279 |
set_random_seeds |
|
|
280 |
|
|
|
281 |
Visualization |
|
|
282 |
============= |
|
|
283 |
|
|
|
284 |
:py:mod:`braindecode.visualization`: |
|
|
285 |
|
|
|
286 |
.. currentmodule:: braindecode.visualization |
|
|
287 |
|
|
|
288 |
.. autosummary:: |
|
|
289 |
:toctree: generated/ |
|
|
290 |
|
|
|
291 |
compute_amplitude_gradients |
|
|
292 |
plot_confusion_matrix |