Skip to content

Commit 6eb4bd2

Browse files
new version
1 parent 6d3e45d commit 6eb4bd2

342 files changed

Lines changed: 13363 additions & 48789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.

stable/_downloads/090305d06248840b75133975e5121f41/plot_sleep_staging_chambon2018.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
"name": "python",
284284
"nbconvert_exporter": "python",
285285
"pygments_lexer": "ipython3",
286-
"version": "3.12.0"
286+
"version": "3.12.11"
287287
}
288288
},
289289
"nbformat": 4,

stable/_downloads/0f2bf063e08b7d05b80e0004fcbbb6f9/benchmark_lazy_eager_loading.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"# Authors: Hubert Banville <hubert.jbanville@gmail.com>\n#\n# License: BSD (3-clause)\n\nimport time\nfrom itertools import product\n\nimport mne\nimport numpy as np\nimport pandas as pd\nimport seaborn as sns\nimport torch\nfrom torch import nn, optim\nfrom torch.utils.data import DataLoader\n\nfrom braindecode.datasets import TUHAbnormal\nfrom braindecode.models import Deep4Net, ShallowFBCSPNet\nfrom braindecode.preprocessing import create_fixed_length_windows\n\nmne.set_log_level(\"WARNING\") # avoid messages every time a window is extracted"
18+
"# Authors: Hubert Banville <hubert.jbanville@gmail.com>\n#\n# License: BSD (3-clause)\n\nimport time\nfrom itertools import product\n\nimport mne\nimport numpy as np\nimport pandas as pd\nimport seaborn as sns\nimport torch\nfrom torch import nn, optim\nfrom torch.utils.data import DataLoader\n\nfrom braindecode.datasets import TUHAbnormal\nfrom braindecode.models import Deep4Net, ShallowFBCSPNet\nfrom braindecode.preprocessing import create_fixed_length_windows\nfrom braindecode.util import set_random_seeds\n\nmne.set_log_level(\"WARNING\") # avoid messages every time a window is extracted"
1919
]
2020
},
2121
{
@@ -33,7 +33,7 @@
3333
},
3434
"outputs": [],
3535
"source": [
36-
"N_JOBS = 8\ntorch.backends.cudnn.benchmark = True # Enables automatic algorithm optimizations\ntorch.set_num_threads(N_JOBS) # Sets the available number of threads"
36+
"N_JOBS = 8\ntorch.backends.cudnn.benchmark = True # Enables automatic algorithm optimizations\ntorch.set_num_threads(N_JOBS) # Sets the available number of threads\ncuda = torch.cuda.is_available()\nseed = 20240205\nset_random_seeds(seed=seed, cuda=cuda)"
3737
]
3838
},
3939
{
@@ -175,7 +175,7 @@
175175
"name": "python",
176176
"nbconvert_exporter": "python",
177177
"pygments_lexer": "ipython3",
178-
"version": "3.12.0"
178+
"version": "3.12.11"
179179
}
180180
},
181181
"nbformat": 4,

stable/_downloads/1c6590d134fa0befda654e89aa55b2ac/plot_benchmark_preprocessing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"name": "python",
9797
"nbconvert_exporter": "python",
9898
"pygments_lexer": "ipython3",
99-
"version": "3.12.0"
99+
"version": "3.12.11"
100100
}
101101
},
102102
"nbformat": 4,

stable/_downloads/1d879df548fa18be8c23d9ca0dc008d4/plot_data_augmentation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
"name": "python",
252252
"nbconvert_exporter": "python",
253253
"pygments_lexer": "ipython3",
254-
"version": "3.12.0"
254+
"version": "3.12.11"
255255
}
256256
},
257257
"nbformat": 4,

stable/_downloads/1f2407fc0459906c808c847bdcd84ccf/plot_sleep_staging_eldele2021.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
# ~~~~~~~~~~~~~~~
6868
#
6969
# We extract 30-s windows to be used in the classification task.
70-
# The :class:`braindecode.models.SleepStagerEldele2021` model takes a
70+
# The :class:`braindecode.models.AttnSleep` model takes a
7171
# single channel as input. Here, the Fpz-Cz channel is used as it
7272
# was found to give better performance than using the Pz-Oz channel
7373

@@ -190,7 +190,7 @@ def get_center_label(x):
190190
import torch
191191
from torch import nn
192192

193-
from braindecode.models import SleepStagerEldele2021
193+
from braindecode.models import AttnSleep
194194
from braindecode.modules import TimeDistributed
195195
from braindecode.util import set_random_seeds
196196

@@ -205,8 +205,8 @@ def get_center_label(x):
205205
# Extract number of channels and time steps from dataset
206206
n_channels, input_size_samples = train_set[0][0].shape
207207

208-
feat_extractor = SleepStagerEldele2021(
209-
sfreq,
208+
feat_extractor = AttnSleep(
209+
sfreq=sfreq,
210210
n_outputs=n_classes,
211211
n_times=input_size_samples,
212212
return_feats=True,

stable/_downloads/2466f8ec5c733d0bd65e187b45d875cc/plot_data_augmentation_search.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
"name": "python",
295295
"nbconvert_exporter": "python",
296296
"pygments_lexer": "ipython3",
297-
"version": "3.12.0"
297+
"version": "3.12.11"
298298
}
299299
},
300300
"nbformat": 4,

stable/_downloads/263464a28477cf8decb861ae6e2e9be7/plot_how_train_test_and_tune.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
"name": "python",
368368
"nbconvert_exporter": "python",
369369
"pygments_lexer": "ipython3",
370-
"version": "3.12.0"
370+
"version": "3.12.11"
371371
}
372372
},
373373
"nbformat": 4,
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)