Note
Go to the end to download the full example code.
Examples of analysis of a Dreyer2023 A dataset.#
This example shows how to plot Dreyer2023A Left-Right Imagery ROC AUC scores obtained with CSP+LDA pipeline versus demographic information of the examined subjects (gender and age) and experimenters (gender).
To reduce computational time, the example is provided for four subjects.
# Authors: Sara Sedlar <sara.sedlar@gmail.com>
# Sylvain Chevallier <sylvain.chevallier@universite-paris-saclay.fr>
# License: BSD (3-clause)
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
import seaborn as sb
from pyriemann.estimation import Covariances
from pyriemann.spatialfilters import CSP
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
from sklearn.pipeline import make_pipeline
from moabb.datasets import Dreyer2023A
from moabb.evaluations import WithinSessionEvaluation
from moabb.paradigms import MotorImagery
Defining dataset, selecting subject for analysis and getting data
dreyer2023 = Dreyer2023A()
dreyer2023.subject_list = [1, 5, 7, 35]
dreyer2023.get_data()
0%| | 0.00/5.84k [00:00<?, ?B/s]
0%| | 0.00/5.84k [00:00<?, ?B/s]
100%|█████████████████████████████████████| 5.84k/5.84k [00:00<00:00, 34.3MB/s]
0it [00:00, ?it/s]
0%| | 0.00/698 [00:00<?, ?B/s]
0%| | 0.00/698 [00:00<?, ?B/s]
100%|█████████████████████████████████████████| 698/698 [00:00<00:00, 3.80MB/s]
1it [00:01, 1.19s/it]
0%| | 0.00/89.0k [00:00<?, ?B/s]
0%| | 0.00/89.0k [00:00<?, ?B/s]
100%|██████████████████████████████████████| 89.0k/89.0k [00:00<00:00, 255MB/s]
2it [00:02, 1.17s/it]
0%| | 0.00/303 [00:00<?, ?B/s]
0%| | 0.00/303 [00:00<?, ?B/s]
100%|█████████████████████████████████████████| 303/303 [00:00<00:00, 1.47MB/s]
3it [00:03, 1.26s/it]
0%| | 0.00/485k [00:00<?, ?B/s]
50%|███████████████████▋ | 245k/485k [00:00<00:00, 2.39MB/s]
0%| | 0.00/485k [00:00<?, ?B/s]
100%|███████████████████████████████████████| 485k/485k [00:00<00:00, 1.60GB/s]
4it [00:05, 1.29s/it]
0%| | 0.00/1.92k [00:00<?, ?B/s]
0%| | 0.00/1.92k [00:00<?, ?B/s]
100%|█████████████████████████████████████| 1.92k/1.92k [00:00<00:00, 8.85MB/s]
5it [00:06, 1.30s/it]
0%| | 0.00/788 [00:00<?, ?B/s]
0%| | 0.00/788 [00:00<?, ?B/s]
100%|█████████████████████████████████████████| 788/788 [00:00<00:00, 3.90MB/s]
6it [00:08, 1.47s/it]
0%| | 0.00/2.22k [00:00<?, ?B/s]
0%| | 0.00/2.22k [00:00<?, ?B/s]
100%|█████████████████████████████████████| 2.22k/2.22k [00:00<00:00, 10.6MB/s]
7it [00:09, 1.42s/it]
0%| | 0.00/1.39M [00:00<?, ?B/s]
12%|████▍ | 163k/1.39M [00:00<00:00, 1.60MB/s]
0%| | 0.00/1.39M [00:00<?, ?B/s]
100%|█████████████████████████████████████| 1.39M/1.39M [00:00<00:00, 3.76GB/s]
8it [00:11, 1.59s/it]
0%| | 0.00/72.6M [00:00<?, ?B/s]
0%| | 146k/72.6M [00:00<00:50, 1.45MB/s]
1%|▍ | 896k/72.6M [00:00<00:14, 4.90MB/s]
2%|▉ | 1.79M/72.6M [00:00<00:10, 6.72MB/s]
4%|█▍ | 2.72M/72.6M [00:00<00:09, 7.75MB/s]
5%|█▊ | 3.62M/72.6M [00:00<00:08, 8.18MB/s]
6%|██▎ | 4.44M/72.6M [00:00<00:08, 8.10MB/s]
7%|██▋ | 5.32M/72.6M [00:00<00:08, 8.31MB/s]
9%|███▏ | 6.23M/72.6M [00:00<00:07, 8.38MB/s]
10%|███▋ | 7.15M/72.6M [00:00<00:07, 8.56MB/s]
11%|████ | 8.00M/72.6M [00:01<00:07, 8.26MB/s]
12%|████▌ | 8.83M/72.6M [00:01<00:08, 7.23MB/s]
13%|████▉ | 9.58M/72.6M [00:01<00:12, 5.17MB/s]
14%|█████▏ | 10.2M/72.6M [00:01<00:11, 5.35MB/s]
15%|█████▌ | 10.9M/72.6M [00:01<00:11, 5.53MB/s]
16%|█████▊ | 11.5M/72.6M [00:01<00:11, 5.17MB/s]
17%|██████▎ | 12.5M/72.6M [00:01<00:09, 6.36MB/s]
19%|██████▉ | 13.5M/72.6M [00:01<00:08, 7.30MB/s]
20%|███████▍ | 14.5M/72.6M [00:02<00:07, 8.05MB/s]
22%|███████▉ | 15.6M/72.6M [00:02<00:06, 8.78MB/s]
23%|████████▌ | 16.8M/72.6M [00:02<00:06, 9.22MB/s]
25%|█████████▏ | 17.9M/72.6M [00:02<00:05, 9.82MB/s]
26%|█████████▋ | 19.1M/72.6M [00:02<00:05, 10.4MB/s]
28%|██████████▎ | 20.2M/72.6M [00:02<00:04, 10.5MB/s]
29%|██████████▊ | 21.3M/72.6M [00:02<00:04, 10.6MB/s]
31%|███████████▍ | 22.4M/72.6M [00:02<00:04, 10.3MB/s]
32%|███████████▉ | 23.5M/72.6M [00:02<00:04, 10.4MB/s]
34%|████████████▌ | 24.7M/72.6M [00:03<00:04, 10.8MB/s]
36%|█████████████▏ | 25.8M/72.6M [00:03<00:04, 10.8MB/s]
37%|█████████████▋ | 27.0M/72.6M [00:03<00:04, 10.9MB/s]
39%|██████████████▎ | 28.1M/72.6M [00:03<00:04, 10.5MB/s]
40%|██████████████▉ | 29.2M/72.6M [00:03<00:04, 10.8MB/s]
42%|███████████████▍ | 30.3M/72.6M [00:03<00:04, 9.98MB/s]
43%|███████████████▉ | 31.3M/72.6M [00:03<00:04, 9.52MB/s]
45%|████████████████▌ | 32.4M/72.6M [00:03<00:04, 9.84MB/s]
46%|█████████████████ | 33.6M/72.6M [00:03<00:03, 10.2MB/s]
48%|█████████████████▋ | 34.6M/72.6M [00:04<00:03, 9.70MB/s]
49%|██████████████████▏ | 35.6M/72.6M [00:04<00:04, 7.69MB/s]
50%|██████████████████▌ | 36.4M/72.6M [00:04<00:04, 7.27MB/s]
51%|██████████████████▉ | 37.2M/72.6M [00:04<00:05, 6.37MB/s]
52%|███████████████████▎ | 37.9M/72.6M [00:04<00:05, 6.35MB/s]
53%|███████████████████▊ | 38.8M/72.6M [00:04<00:04, 6.89MB/s]
54%|████████████████████▏ | 39.5M/72.6M [00:04<00:04, 6.93MB/s]
56%|████████████████████▌ | 40.3M/72.6M [00:04<00:04, 7.01MB/s]
57%|█████████████████████ | 41.3M/72.6M [00:05<00:04, 7.64MB/s]
58%|█████████████████████▍ | 42.1M/72.6M [00:05<00:03, 7.67MB/s]
59%|█████████████████████▉ | 43.0M/72.6M [00:05<00:03, 7.99MB/s]
60%|██████████████████████▎ | 43.8M/72.6M [00:05<00:03, 8.07MB/s]
62%|██████████████████████▊ | 44.6M/72.6M [00:05<00:03, 7.30MB/s]
63%|███████████████████████▏ | 45.5M/72.6M [00:05<00:03, 7.70MB/s]
64%|███████████████████████▌ | 46.3M/72.6M [00:05<00:03, 7.54MB/s]
65%|████████████████████████ | 47.3M/72.6M [00:05<00:03, 7.97MB/s]
67%|████████████████████████▌ | 48.3M/72.6M [00:05<00:02, 8.42MB/s]
68%|█████████████████████████▏ | 49.3M/72.6M [00:06<00:02, 8.94MB/s]
69%|█████████████████████████▋ | 50.4M/72.6M [00:06<00:02, 9.24MB/s]
71%|██████████████████████████▏ | 51.4M/72.6M [00:06<00:02, 9.57MB/s]
72%|██████████████████████████▋ | 52.4M/72.6M [00:06<00:02, 9.56MB/s]
74%|███████████████████████████▎ | 53.5M/72.6M [00:06<00:01, 9.54MB/s]
75%|███████████████████████████▊ | 54.5M/72.6M [00:06<00:01, 9.62MB/s]
77%|████████████████████████████▎ | 55.5M/72.6M [00:06<00:01, 9.71MB/s]
78%|████████████████████████████▊ | 56.6M/72.6M [00:06<00:01, 9.73MB/s]
79%|█████████████████████████████▎ | 57.5M/72.6M [00:06<00:01, 9.68MB/s]
81%|█████████████████████████████▊ | 58.5M/72.6M [00:06<00:01, 9.66MB/s]
82%|██████████████████████████████▍ | 59.6M/72.6M [00:07<00:01, 9.69MB/s]
84%|██████████████████████████████▉ | 60.6M/72.6M [00:07<00:01, 9.64MB/s]
85%|███████████████████████████████▍ | 61.6M/72.6M [00:07<00:01, 8.98MB/s]
86%|███████████████████████████████▊ | 62.5M/72.6M [00:07<00:01, 8.61MB/s]
87%|████████████████████████████████▎ | 63.3M/72.6M [00:07<00:01, 8.59MB/s]
88%|████████████████████████████████▋ | 64.2M/72.6M [00:07<00:01, 8.03MB/s]
90%|█████████████████████████████████▏ | 65.0M/72.6M [00:07<00:01, 7.13MB/s]
91%|█████████████████████████████████▌ | 65.7M/72.6M [00:07<00:00, 6.84MB/s]
92%|█████████████████████████████████▉ | 66.7M/72.6M [00:08<00:00, 7.24MB/s]
93%|██████████████████████████████████▍ | 67.5M/72.6M [00:08<00:00, 7.38MB/s]
94%|██████████████████████████████████▊ | 68.3M/72.6M [00:08<00:00, 7.63MB/s]
95%|███████████████████████████████████▏ | 69.1M/72.6M [00:08<00:00, 7.62MB/s]
96%|███████████████████████████████████▋ | 69.9M/72.6M [00:08<00:00, 7.53MB/s]
97%|████████████████████████████████████ | 70.6M/72.6M [00:08<00:00, 7.42MB/s]
98%|████████████████████████████████████▍| 71.4M/72.6M [00:08<00:00, 7.48MB/s]
99%|████████████████████████████████████▊| 72.1M/72.6M [00:08<00:00, 7.42MB/s]
0%| | 0.00/72.6M [00:00<?, ?B/s]
100%|██████████████████████████████████████| 72.6M/72.6M [00:00<00:00, 194GB/s]
9it [00:21, 4.37s/it]
9it [00:21, 2.43s/it]
0it [00:00, ?it/s]
0%| | 0.00/65.0M [00:00<?, ?B/s]
0%| | 201k/65.0M [00:00<00:32, 2.01MB/s]
1%|▎ | 638k/65.0M [00:00<00:20, 3.21MB/s]
2%|▌ | 1.08M/65.0M [00:00<00:17, 3.62MB/s]
2%|▊ | 1.52M/65.0M [00:00<00:16, 3.83MB/s]
3%|█ | 1.97M/65.0M [00:00<00:15, 3.95MB/s]
4%|█▎ | 2.41M/65.0M [00:00<00:15, 4.02MB/s]
4%|█▌ | 2.82M/65.0M [00:00<00:15, 3.95MB/s]
5%|█▊ | 3.26M/65.0M [00:00<00:15, 4.02MB/s]
6%|██ | 3.70M/65.0M [00:00<00:15, 4.06MB/s]
6%|██▎ | 4.14M/65.0M [00:01<00:14, 4.09MB/s]
7%|██▌ | 4.59M/65.0M [00:01<00:14, 4.11MB/s]
8%|██▊ | 5.00M/65.0M [00:01<00:14, 4.10MB/s]
8%|███ | 5.44M/65.0M [00:01<00:14, 4.10MB/s]
9%|███▎ | 5.88M/65.0M [00:01<00:14, 4.10MB/s]
10%|███▌ | 6.32M/65.0M [00:01<00:14, 4.12MB/s]
10%|███▊ | 6.76M/65.0M [00:01<00:13, 4.19MB/s]
11%|████ | 7.18M/65.0M [00:01<00:13, 4.13MB/s]
12%|████▎ | 7.62M/65.0M [00:01<00:14, 4.10MB/s]
12%|████▌ | 8.04M/65.0M [00:02<00:13, 4.07MB/s]
13%|████▊ | 8.48M/65.0M [00:02<00:13, 4.09MB/s]
14%|█████ | 8.93M/65.0M [00:02<00:13, 4.11MB/s]
14%|█████▎ | 9.34M/65.0M [00:02<00:14, 3.97MB/s]
15%|█████▌ | 9.74M/65.0M [00:02<00:13, 3.97MB/s]
16%|█████▊ | 10.1M/65.0M [00:02<00:13, 3.96MB/s]
16%|██████ | 10.6M/65.0M [00:02<00:13, 4.08MB/s]
17%|██████▎ | 11.0M/65.0M [00:02<00:13, 4.09MB/s]
18%|██████▌ | 11.5M/65.0M [00:02<00:13, 4.10MB/s]
18%|██████▊ | 11.9M/65.0M [00:02<00:12, 4.11MB/s]
19%|███████ | 12.4M/65.0M [00:03<00:12, 4.14MB/s]
20%|███████▎ | 12.8M/65.0M [00:03<00:12, 4.17MB/s]
20%|███████▌ | 13.2M/65.0M [00:03<00:12, 4.19MB/s]
21%|███████▊ | 13.7M/65.0M [00:03<00:12, 4.16MB/s]
22%|████████ | 14.1M/65.0M [00:03<00:12, 4.14MB/s]
22%|████████▏ | 14.5M/65.0M [00:03<00:13, 3.83MB/s]
23%|████████▍ | 14.9M/65.0M [00:03<00:12, 3.86MB/s]
24%|████████▋ | 15.3M/65.0M [00:03<00:12, 3.97MB/s]
24%|████████▉ | 15.8M/65.0M [00:03<00:12, 4.05MB/s]
25%|█████████▏ | 16.2M/65.0M [00:04<00:11, 4.09MB/s]
26%|█████████▍ | 16.7M/65.0M [00:04<00:11, 4.14MB/s]
26%|█████████▋ | 17.1M/65.0M [00:04<00:11, 4.16MB/s]
27%|██████████ | 17.6M/65.0M [00:04<00:11, 4.09MB/s]
28%|██████████▎ | 18.0M/65.0M [00:04<00:11, 4.12MB/s]
28%|██████████▌ | 18.5M/65.0M [00:04<00:11, 4.10MB/s]
29%|██████████▊ | 18.9M/65.0M [00:04<00:11, 4.13MB/s]
30%|██████████▉ | 19.3M/65.0M [00:04<00:11, 4.13MB/s]
30%|███████████▏ | 19.8M/65.0M [00:04<00:11, 4.01MB/s]
31%|███████████▍ | 20.2M/65.0M [00:04<00:11, 4.01MB/s]
32%|███████████▋ | 20.6M/65.0M [00:05<00:10, 4.05MB/s]
32%|███████████▉ | 21.1M/65.0M [00:05<00:10, 4.05MB/s]
33%|████████████▏ | 21.5M/65.0M [00:05<00:12, 3.52MB/s]
34%|████████████▍ | 21.9M/65.0M [00:05<00:12, 3.51MB/s]
34%|████████████▋ | 22.2M/65.0M [00:05<00:11, 3.62MB/s]
35%|████████████▉ | 22.7M/65.0M [00:05<00:11, 3.76MB/s]
35%|█████████████ | 23.1M/65.0M [00:05<00:12, 3.48MB/s]
36%|█████████████▎ | 23.5M/65.0M [00:05<00:11, 3.61MB/s]
37%|█████████████▌ | 23.9M/65.0M [00:06<00:10, 3.79MB/s]
37%|█████████████▊ | 24.3M/65.0M [00:06<00:11, 3.56MB/s]
38%|██████████████ | 24.7M/65.0M [00:06<00:10, 3.73MB/s]
39%|██████████████▎ | 25.2M/65.0M [00:06<00:10, 3.90MB/s]
39%|██████████████▌ | 25.6M/65.0M [00:06<00:09, 3.98MB/s]
40%|██████████████▊ | 26.0M/65.0M [00:06<00:09, 3.94MB/s]
41%|███████████████ | 26.5M/65.0M [00:06<00:09, 4.02MB/s]
41%|███████████████▎ | 26.9M/65.0M [00:06<00:09, 4.08MB/s]
42%|███████████████▌ | 27.3M/65.0M [00:06<00:09, 4.05MB/s]
43%|███████████████▊ | 27.8M/65.0M [00:06<00:09, 4.12MB/s]
43%|████████████████ | 28.2M/65.0M [00:07<00:09, 4.07MB/s]
44%|████████████████▎ | 28.7M/65.0M [00:07<00:08, 4.11MB/s]
45%|████████████████▌ | 29.1M/65.0M [00:07<00:08, 4.07MB/s]
45%|████████████████▊ | 29.5M/65.0M [00:07<00:08, 4.01MB/s]
46%|█████████████████ | 30.0M/65.0M [00:07<00:08, 3.91MB/s]
47%|█████████████████▎ | 30.4M/65.0M [00:07<00:08, 4.08MB/s]
47%|█████████████████▌ | 30.9M/65.0M [00:07<00:08, 4.12MB/s]
48%|█████████████████▊ | 31.3M/65.0M [00:07<00:08, 4.19MB/s]
49%|██████████████████ | 31.8M/65.0M [00:07<00:08, 4.16MB/s]
50%|██████████████████▎ | 32.2M/65.0M [00:08<00:07, 4.18MB/s]
50%|██████████████████▌ | 32.6M/65.0M [00:08<00:07, 4.13MB/s]
51%|██████████████████▊ | 33.0M/65.0M [00:08<00:07, 4.07MB/s]
51%|███████████████████ | 33.4M/65.0M [00:08<00:07, 4.01MB/s]
52%|███████████████████▎ | 33.9M/65.0M [00:08<00:07, 4.07MB/s]
53%|███████████████████▌ | 34.3M/65.0M [00:08<00:07, 4.07MB/s]
53%|███████████████████▊ | 34.8M/65.0M [00:08<00:07, 4.03MB/s]
54%|████████████████████ | 35.2M/65.0M [00:08<00:07, 4.05MB/s]
55%|████████████████████▎ | 35.6M/65.0M [00:08<00:07, 4.02MB/s]
55%|████████████████████▌ | 36.1M/65.0M [00:09<00:07, 4.04MB/s]
56%|████████████████████▊ | 36.5M/65.0M [00:09<00:06, 4.10MB/s]
57%|█████████████████████ | 36.9M/65.0M [00:09<00:06, 4.09MB/s]
57%|█████████████████████▎ | 37.4M/65.0M [00:09<00:06, 4.06MB/s]
58%|█████████████████████▌ | 37.8M/65.0M [00:09<00:06, 4.07MB/s]
59%|█████████████████████▊ | 38.2M/65.0M [00:09<00:06, 4.09MB/s]
59%|██████████████████████ | 38.7M/65.0M [00:09<00:06, 4.11MB/s]
60%|██████████████████████▎ | 39.1M/65.0M [00:09<00:06, 4.12MB/s]
61%|██████████████████████▌ | 39.5M/65.0M [00:09<00:06, 4.06MB/s]
62%|██████████████████████▊ | 40.0M/65.0M [00:09<00:06, 4.07MB/s]
62%|███████████████████████ | 40.4M/65.0M [00:10<00:06, 4.07MB/s]
63%|███████████████████████▏ | 40.8M/65.0M [00:10<00:06, 4.02MB/s]
63%|███████████████████████▍ | 41.3M/65.0M [00:10<00:05, 4.10MB/s]
64%|███████████████████████▋ | 41.7M/65.0M [00:10<00:05, 4.07MB/s]
65%|███████████████████████▉ | 42.1M/65.0M [00:10<00:05, 4.00MB/s]
65%|████████████████████████▏ | 42.5M/65.0M [00:10<00:05, 4.09MB/s]
66%|████████████████████████▍ | 43.0M/65.0M [00:10<00:05, 4.03MB/s]
67%|████████████████████████▋ | 43.4M/65.0M [00:10<00:05, 4.07MB/s]
68%|████████████████████████▉ | 43.9M/65.0M [00:10<00:05, 4.13MB/s]
68%|█████████████████████████▏ | 44.4M/65.0M [00:11<00:04, 4.17MB/s]
69%|█████████████████████████▍ | 44.8M/65.0M [00:11<00:04, 4.18MB/s]
70%|█████████████████████████▊ | 45.3M/65.0M [00:11<00:04, 4.15MB/s]
70%|█████████████████████████▉ | 45.7M/65.0M [00:11<00:05, 3.67MB/s]
71%|██████████████████████████▏ | 46.0M/65.0M [00:11<00:05, 3.32MB/s]
71%|██████████████████████████▍ | 46.5M/65.0M [00:11<00:05, 3.56MB/s]
72%|██████████████████████████▋ | 46.8M/65.0M [00:11<00:05, 3.28MB/s]
73%|██████████████████████████▊ | 47.2M/65.0M [00:11<00:05, 3.06MB/s]
73%|███████████████████████████ | 47.6M/65.0M [00:12<00:05, 3.33MB/s]
74%|███████████████████████████▎ | 48.1M/65.0M [00:12<00:04, 3.59MB/s]
75%|███████████████████████████▌ | 48.5M/65.0M [00:12<00:04, 3.77MB/s]
75%|███████████████████████████▊ | 48.9M/65.0M [00:12<00:04, 3.80MB/s]
76%|████████████████████████████ | 49.4M/65.0M [00:12<00:03, 3.96MB/s]
77%|████████████████████████████▎ | 49.8M/65.0M [00:12<00:03, 4.01MB/s]
77%|████████████████████████████▌ | 50.2M/65.0M [00:12<00:03, 4.00MB/s]
78%|████████████████████████████▊ | 50.7M/65.0M [00:12<00:03, 4.01MB/s]
79%|█████████████████████████████ | 51.1M/65.0M [00:12<00:03, 4.02MB/s]
79%|█████████████████████████████▎ | 51.5M/65.0M [00:12<00:03, 4.04MB/s]
80%|█████████████████████████████▌ | 52.0M/65.0M [00:13<00:03, 4.07MB/s]
81%|█████████████████████████████▊ | 52.4M/65.0M [00:13<00:03, 4.04MB/s]
81%|██████████████████████████████ | 52.9M/65.0M [00:13<00:02, 4.12MB/s]
82%|██████████████████████████████▎ | 53.3M/65.0M [00:13<00:02, 4.16MB/s]
83%|██████████████████████████████▌ | 53.8M/65.0M [00:13<00:02, 4.17MB/s]
83%|██████████████████████████████▊ | 54.2M/65.0M [00:13<00:02, 4.20MB/s]
84%|███████████████████████████████ | 54.6M/65.0M [00:13<00:02, 4.22MB/s]
85%|███████████████████████████████▎ | 55.1M/65.0M [00:13<00:02, 4.20MB/s]
85%|███████████████████████████████▌ | 55.5M/65.0M [00:13<00:02, 4.15MB/s]
86%|███████████████████████████████▊ | 55.9M/65.0M [00:14<00:02, 4.11MB/s]
87%|████████████████████████████████ | 56.3M/65.0M [00:14<00:02, 4.10MB/s]
87%|████████████████████████████████▎ | 56.7M/65.0M [00:14<00:02, 4.04MB/s]
88%|████████████████████████████████▌ | 57.1M/65.0M [00:14<00:01, 4.01MB/s]
89%|████████████████████████████████▊ | 57.6M/65.0M [00:14<00:01, 4.07MB/s]
89%|█████████████████████████████████ | 58.0M/65.0M [00:14<00:01, 4.09MB/s]
90%|█████████████████████████████████▎ | 58.5M/65.0M [00:14<00:01, 4.10MB/s]
91%|█████████████████████████████████▌ | 58.9M/65.0M [00:14<00:01, 4.13MB/s]
91%|█████████████████████████████████▊ | 59.3M/65.0M [00:14<00:01, 4.14MB/s]
92%|██████████████████████████████████ | 59.8M/65.0M [00:14<00:01, 4.17MB/s]
93%|██████████████████████████████████▎ | 60.2M/65.0M [00:15<00:01, 4.17MB/s]
93%|██████████████████████████████████▌ | 60.7M/65.0M [00:15<00:01, 4.17MB/s]
94%|██████████████████████████████████▊ | 61.1M/65.0M [00:15<00:00, 4.13MB/s]
95%|███████████████████████████████████ | 61.6M/65.0M [00:15<00:00, 4.12MB/s]
95%|███████████████████████████████████▎ | 62.0M/65.0M [00:15<00:00, 4.13MB/s]
96%|███████████████████████████████████▌ | 62.4M/65.0M [00:15<00:00, 4.11MB/s]
97%|███████████████████████████████████▋ | 62.8M/65.0M [00:15<00:00, 3.92MB/s]
97%|███████████████████████████████████▉ | 63.2M/65.0M [00:15<00:00, 3.71MB/s]
98%|████████████████████████████████████▏| 63.6M/65.0M [00:15<00:00, 3.73MB/s]
99%|████████████████████████████████████▍| 64.1M/65.0M [00:16<00:00, 3.79MB/s]
99%|████████████████████████████████████▋| 64.5M/65.0M [00:16<00:00, 3.92MB/s]
100%|████████████████████████████████████▉| 64.9M/65.0M [00:16<00:00, 4.00MB/s]
0%| | 0.00/65.0M [00:00<?, ?B/s]
100%|██████████████████████████████████████| 65.0M/65.0M [00:00<00:00, 211GB/s]
9it [00:18, 2.02s/it]
9it [00:18, 2.02s/it]
0it [00:00, ?it/s]
0%| | 0.00/64.3M [00:00<?, ?B/s]
0%| | 179k/64.3M [00:00<00:37, 1.73MB/s]
1%|▎ | 589k/64.3M [00:00<00:20, 3.08MB/s]
2%|▌ | 1.03M/64.3M [00:00<00:17, 3.59MB/s]
2%|▊ | 1.47M/64.3M [00:00<00:16, 3.74MB/s]
3%|█ | 1.92M/64.3M [00:00<00:16, 3.89MB/s]
4%|█▎ | 2.36M/64.3M [00:00<00:15, 3.94MB/s]
4%|█▌ | 2.80M/64.3M [00:00<00:15, 4.01MB/s]
5%|█▊ | 3.24M/64.3M [00:00<00:15, 4.03MB/s]
6%|██ | 3.68M/64.3M [00:00<00:14, 4.07MB/s]
6%|██▎ | 4.13M/64.3M [00:01<00:14, 4.10MB/s]
7%|██▋ | 4.57M/64.3M [00:01<00:14, 4.15MB/s]
8%|██▉ | 5.01M/64.3M [00:01<00:14, 4.15MB/s]
8%|███▏ | 5.44M/64.3M [00:01<00:14, 4.14MB/s]
9%|███▎ | 5.85M/64.3M [00:01<00:14, 3.97MB/s]
10%|███▌ | 6.25M/64.3M [00:01<00:14, 3.97MB/s]
10%|███▊ | 6.68M/64.3M [00:01<00:14, 4.06MB/s]
11%|████ | 7.09M/64.3M [00:01<00:14, 4.02MB/s]
12%|████▎ | 7.50M/64.3M [00:01<00:14, 4.03MB/s]
12%|████▌ | 7.91M/64.3M [00:02<00:14, 4.00MB/s]
13%|████▊ | 8.35M/64.3M [00:02<00:13, 4.07MB/s]
14%|█████ | 8.80M/64.3M [00:02<00:13, 4.12MB/s]
14%|█████▎ | 9.21M/64.3M [00:02<00:13, 4.06MB/s]
15%|█████▌ | 9.63M/64.3M [00:02<00:13, 4.06MB/s]
16%|█████▊ | 10.1M/64.3M [00:02<00:13, 4.10MB/s]
16%|██████ | 10.5M/64.3M [00:02<00:13, 4.12MB/s]
17%|██████▎ | 11.0M/64.3M [00:02<00:12, 4.14MB/s]
18%|██████▌ | 11.4M/64.3M [00:02<00:12, 4.17MB/s]
18%|██████▊ | 11.8M/64.3M [00:02<00:12, 4.19MB/s]
19%|███████ | 12.3M/64.3M [00:03<00:12, 4.16MB/s]
20%|███████▎ | 12.7M/64.3M [00:03<00:12, 4.19MB/s]
20%|███████▌ | 13.2M/64.3M [00:03<00:12, 4.19MB/s]
21%|███████▊ | 13.6M/64.3M [00:03<00:12, 4.14MB/s]
22%|████████ | 14.0M/64.3M [00:03<00:12, 4.14MB/s]
22%|████████▎ | 14.4M/64.3M [00:03<00:11, 4.16MB/s]
23%|████████▌ | 14.9M/64.3M [00:03<00:11, 4.18MB/s]
24%|████████▊ | 15.3M/64.3M [00:03<00:11, 4.17MB/s]
25%|█████████ | 15.8M/64.3M [00:03<00:11, 4.16MB/s]
25%|█████████▎ | 16.2M/64.3M [00:04<00:11, 4.13MB/s]
26%|█████████▌ | 16.6M/64.3M [00:04<00:11, 4.11MB/s]
27%|█████████▊ | 17.1M/64.3M [00:04<00:11, 4.15MB/s]
27%|██████████ | 17.5M/64.3M [00:04<00:11, 4.16MB/s]
28%|██████████▎ | 18.0M/64.3M [00:04<00:11, 4.16MB/s]
29%|██████████▌ | 18.4M/64.3M [00:04<00:11, 4.17MB/s]
29%|██████████▊ | 18.9M/64.3M [00:04<00:10, 4.18MB/s]
30%|███████████ | 19.3M/64.3M [00:04<00:10, 4.21MB/s]
31%|███████████▎ | 19.7M/64.3M [00:04<00:10, 4.20MB/s]
31%|███████████▌ | 20.2M/64.3M [00:04<00:10, 4.21MB/s]
32%|███████████▊ | 20.6M/64.3M [00:05<00:10, 4.22MB/s]
33%|████████████ | 21.0M/64.3M [00:05<00:11, 3.66MB/s]
33%|████████████▎ | 21.4M/64.3M [00:05<00:12, 3.48MB/s]
34%|████████████▌ | 21.8M/64.3M [00:05<00:11, 3.55MB/s]
35%|████████████▊ | 22.2M/64.3M [00:05<00:11, 3.74MB/s]
35%|█████████████ | 22.7M/64.3M [00:05<00:10, 3.90MB/s]
36%|█████████████▎ | 23.1M/64.3M [00:05<00:10, 3.91MB/s]
37%|█████████████▌ | 23.6M/64.3M [00:05<00:10, 3.97MB/s]
37%|█████████████▊ | 24.0M/64.3M [00:05<00:09, 4.09MB/s]
38%|██████████████ | 24.5M/64.3M [00:06<00:09, 4.09MB/s]
39%|██████████████▎ | 24.9M/64.3M [00:06<00:09, 4.13MB/s]
39%|██████████████▌ | 25.3M/64.3M [00:06<00:09, 4.04MB/s]
40%|██████████████▊ | 25.8M/64.3M [00:06<00:09, 4.23MB/s]
41%|███████████████ | 26.2M/64.3M [00:06<00:09, 4.21MB/s]
41%|███████████████▎ | 26.7M/64.3M [00:06<00:09, 4.17MB/s]
42%|███████████████▌ | 27.1M/64.3M [00:06<00:08, 4.20MB/s]
43%|███████████████▊ | 27.6M/64.3M [00:06<00:08, 4.21MB/s]
44%|████████████████ | 28.0M/64.3M [00:06<00:08, 4.22MB/s]
44%|████████████████▎ | 28.4M/64.3M [00:07<00:08, 4.19MB/s]
45%|████████████████▌ | 28.9M/64.3M [00:07<00:08, 4.18MB/s]
46%|████████████████▊ | 29.3M/64.3M [00:07<00:08, 4.20MB/s]
46%|█████████████████ | 29.8M/64.3M [00:07<00:08, 4.16MB/s]
47%|█████████████████▍ | 30.2M/64.3M [00:07<00:08, 4.17MB/s]
48%|█████████████████▋ | 30.6M/64.3M [00:07<00:08, 4.20MB/s]
48%|█████████████████▉ | 31.1M/64.3M [00:07<00:07, 4.23MB/s]
49%|██████████████████▏ | 31.5M/64.3M [00:07<00:07, 4.23MB/s]
50%|██████████████████▍ | 32.0M/64.3M [00:07<00:07, 4.18MB/s]
50%|██████████████████▋ | 32.4M/64.3M [00:07<00:07, 4.19MB/s]
51%|██████████████████▉ | 32.9M/64.3M [00:08<00:07, 4.19MB/s]
52%|███████████████████▏ | 33.3M/64.3M [00:08<00:07, 4.14MB/s]
52%|███████████████████▍ | 33.7M/64.3M [00:08<00:07, 4.14MB/s]
53%|███████████████████▋ | 34.1M/64.3M [00:08<00:07, 4.12MB/s]
54%|███████████████████▉ | 34.6M/64.3M [00:08<00:07, 4.09MB/s]
54%|████████████████████▏ | 35.0M/64.3M [00:08<00:07, 4.11MB/s]
55%|████████████████████▍ | 35.5M/64.3M [00:08<00:07, 4.10MB/s]
56%|████████████████████▋ | 35.9M/64.3M [00:08<00:06, 4.10MB/s]
57%|████████████████████▉ | 36.3M/64.3M [00:08<00:06, 4.13MB/s]
57%|█████████████████████▏ | 36.8M/64.3M [00:09<00:06, 4.12MB/s]
58%|█████████████████████▍ | 37.2M/64.3M [00:09<00:06, 4.15MB/s]
59%|█████████████████████▋ | 37.6M/64.3M [00:09<00:06, 4.16MB/s]
59%|█████████████████████▉ | 38.1M/64.3M [00:09<00:06, 4.14MB/s]
60%|██████████████████████▏ | 38.5M/64.3M [00:09<00:06, 4.08MB/s]
60%|██████████████████████▍ | 38.9M/64.3M [00:09<00:06, 3.91MB/s]
61%|██████████████████████▌ | 39.3M/64.3M [00:09<00:06, 3.85MB/s]
62%|██████████████████████▊ | 39.7M/64.3M [00:09<00:06, 3.89MB/s]
62%|███████████████████████ | 40.1M/64.3M [00:09<00:06, 3.96MB/s]
63%|███████████████████████▎ | 40.6M/64.3M [00:09<00:05, 4.04MB/s]
64%|███████████████████████▌ | 41.0M/64.3M [00:10<00:05, 4.09MB/s]
64%|███████████████████████▊ | 41.5M/64.3M [00:10<00:05, 4.09MB/s]
65%|████████████████████████ | 41.9M/64.3M [00:10<00:05, 4.12MB/s]
66%|████████████████████████▎ | 42.3M/64.3M [00:10<00:05, 4.09MB/s]
66%|████████████████████████▌ | 42.7M/64.3M [00:10<00:05, 4.05MB/s]
67%|████████████████████████▊ | 43.2M/64.3M [00:10<00:05, 4.13MB/s]
68%|█████████████████████████ | 43.6M/64.3M [00:10<00:04, 4.14MB/s]
68%|█████████████████████████▎ | 44.0M/64.3M [00:10<00:04, 4.08MB/s]
69%|█████████████████████████▌ | 44.5M/64.3M [00:10<00:04, 4.14MB/s]
70%|█████████████████████████▊ | 44.9M/64.3M [00:11<00:04, 4.13MB/s]
71%|██████████████████████████ | 45.4M/64.3M [00:11<00:04, 4.07MB/s]
71%|██████████████████████████▎ | 45.8M/64.3M [00:11<00:04, 4.13MB/s]
72%|██████████████████████████▌ | 46.3M/64.3M [00:11<00:04, 3.93MB/s]
73%|██████████████████████████▉ | 46.8M/64.3M [00:11<00:04, 4.13MB/s]
73%|███████████████████████████▏ | 47.2M/64.3M [00:11<00:04, 4.15MB/s]
74%|███████████████████████████▍ | 47.6M/64.3M [00:11<00:04, 4.09MB/s]
75%|███████████████████████████▋ | 48.1M/64.3M [00:11<00:03, 4.13MB/s]
75%|███████████████████████████▉ | 48.5M/64.3M [00:11<00:03, 4.08MB/s]
76%|████████████████████████████▏ | 48.9M/64.3M [00:12<00:04, 3.58MB/s]
77%|████████████████████████████▎ | 49.3M/64.3M [00:12<00:04, 3.54MB/s]
77%|████████████████████████████▌ | 49.7M/64.3M [00:12<00:04, 3.57MB/s]
78%|████████████████████████████▊ | 50.1M/64.3M [00:12<00:03, 3.73MB/s]
79%|█████████████████████████████ | 50.5M/64.3M [00:12<00:03, 3.82MB/s]
79%|█████████████████████████████▎ | 51.0M/64.3M [00:12<00:03, 3.89MB/s]
80%|█████████████████████████████▌ | 51.4M/64.3M [00:12<00:03, 3.96MB/s]
81%|█████████████████████████████▊ | 51.9M/64.3M [00:12<00:03, 4.02MB/s]
81%|██████████████████████████████ | 52.3M/64.3M [00:12<00:02, 4.04MB/s]
82%|██████████████████████████████▎ | 52.7M/64.3M [00:13<00:02, 4.07MB/s]
83%|██████████████████████████████▌ | 53.2M/64.3M [00:13<00:02, 4.10MB/s]
83%|██████████████████████████████▊ | 53.6M/64.3M [00:13<00:02, 4.06MB/s]
84%|███████████████████████████████ | 54.0M/64.3M [00:13<00:02, 4.13MB/s]
85%|███████████████████████████████▎ | 54.5M/64.3M [00:13<00:02, 4.15MB/s]
85%|███████████████████████████████▌ | 54.9M/64.3M [00:13<00:02, 4.09MB/s]
86%|███████████████████████████████▊ | 55.3M/64.3M [00:13<00:02, 4.12MB/s]
87%|████████████████████████████████ | 55.8M/64.3M [00:13<00:02, 4.14MB/s]
87%|████████████████████████████████▎ | 56.2M/64.3M [00:13<00:01, 4.08MB/s]
88%|████████████████████████████████▌ | 56.6M/64.3M [00:13<00:01, 4.10MB/s]
89%|████████████████████████████████▊ | 57.1M/64.3M [00:14<00:01, 4.08MB/s]
89%|█████████████████████████████████ | 57.5M/64.3M [00:14<00:01, 4.09MB/s]
90%|█████████████████████████████████▎ | 58.0M/64.3M [00:14<00:01, 4.11MB/s]
91%|█████████████████████████████████▌ | 58.4M/64.3M [00:14<00:01, 4.09MB/s]
91%|█████████████████████████████████▊ | 58.8M/64.3M [00:14<00:01, 4.11MB/s]
92%|██████████████████████████████████ | 59.3M/64.3M [00:14<00:01, 4.14MB/s]
93%|██████████████████████████████████▎ | 59.7M/64.3M [00:14<00:01, 4.13MB/s]
93%|██████████████████████████████████▌ | 60.1M/64.3M [00:14<00:01, 4.13MB/s]
94%|██████████████████████████████████▊ | 60.6M/64.3M [00:14<00:00, 4.13MB/s]
95%|███████████████████████████████████ | 61.0M/64.3M [00:15<00:00, 4.10MB/s]
96%|███████████████████████████████████▎ | 61.4M/64.3M [00:15<00:00, 4.10MB/s]
96%|███████████████████████████████████▌ | 61.9M/64.3M [00:15<00:00, 4.13MB/s]
97%|███████████████████████████████████▊ | 62.3M/64.3M [00:15<00:00, 4.12MB/s]
98%|████████████████████████████████████ | 62.7M/64.3M [00:15<00:00, 4.13MB/s]
98%|████████████████████████████████████▎| 63.2M/64.3M [00:15<00:00, 4.13MB/s]
99%|████████████████████████████████████▌| 63.6M/64.3M [00:15<00:00, 4.10MB/s]
100%|████████████████████████████████████▊| 64.1M/64.3M [00:15<00:00, 4.12MB/s]
0%| | 0.00/64.3M [00:00<?, ?B/s]
100%|██████████████████████████████████████| 64.3M/64.3M [00:00<00:00, 168GB/s]
9it [00:17, 1.92s/it]
9it [00:17, 1.92s/it]
0it [00:00, ?it/s]
0%| | 0.00/67.2M [00:00<?, ?B/s]
0%| | 163k/67.2M [00:00<00:41, 1.63MB/s]
3%|▉ | 1.79M/67.2M [00:00<00:06, 10.1MB/s]
7%|██▍ | 4.54M/67.2M [00:00<00:03, 18.0MB/s]
11%|███▉ | 7.09M/67.2M [00:00<00:02, 20.8MB/s]
15%|█████▌ | 10.2M/67.2M [00:00<00:02, 24.3MB/s]
19%|██████▉ | 12.6M/67.2M [00:00<00:02, 21.0MB/s]
23%|████████▍ | 15.2M/67.2M [00:00<00:02, 22.5MB/s]
26%|█████████▋ | 17.5M/67.2M [00:00<00:02, 22.4MB/s]
30%|██████████▉ | 19.8M/67.2M [00:00<00:02, 20.3MB/s]
34%|████████████▌ | 22.9M/67.2M [00:01<00:01, 22.9MB/s]
38%|█████████████▉ | 25.3M/67.2M [00:01<00:01, 22.4MB/s]
41%|███████████████▎ | 27.9M/67.2M [00:01<00:01, 23.4MB/s]
46%|████████████████▊ | 30.6M/67.2M [00:01<00:01, 24.5MB/s]
50%|██████████████████▎ | 33.3M/67.2M [00:01<00:01, 25.2MB/s]
53%|███████████████████▊ | 35.9M/67.2M [00:01<00:01, 25.2MB/s]
58%|█████████████████████▎ | 38.8M/67.2M [00:01<00:01, 25.5MB/s]
62%|███████████████████████ | 41.8M/67.2M [00:01<00:00, 26.2MB/s]
67%|████████████████████████▋ | 44.9M/67.2M [00:01<00:00, 27.3MB/s]
71%|██████████████████████████▎ | 47.8M/67.2M [00:02<00:00, 27.9MB/s]
75%|███████████████████████████▉ | 50.6M/67.2M [00:02<00:00, 27.9MB/s]
80%|█████████████████████████████▍ | 53.4M/67.2M [00:02<00:00, 27.3MB/s]
84%|██████████████████████████████▉ | 56.2M/67.2M [00:02<00:00, 25.3MB/s]
87%|████████████████████████████████▎ | 58.8M/67.2M [00:02<00:00, 25.4MB/s]
92%|██████████████████████████████████ | 61.8M/67.2M [00:02<00:00, 26.4MB/s]
96%|███████████████████████████████████▋ | 64.8M/67.2M [00:02<00:00, 27.2MB/s]
0%| | 0.00/67.2M [00:00<?, ?B/s]
100%|██████████████████████████████████████| 67.2M/67.2M [00:00<00:00, 201GB/s]
9it [00:04, 1.91it/s]
9it [00:04, 1.91it/s]
{1: {'0': {'0R1acquisition': <RawEDF | sub-01_task-R1acquisition_eeg.edf, 32 x 230400 (450.0 s), ~56.3 MiB, data loaded>, '1R2acquisition': <RawEDF | sub-01_task-R2acquisition_eeg.edf, 32 x 230400 (450.0 s), ~56.3 MiB, data loaded>, '2R3online': <RawEDF | sub-01_task-R3online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '3R4online': <RawEDF | sub-01_task-R4online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '4R5online': <RawEDF | sub-01_task-R5online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '5R6online': <RawEDF | sub-01_task-R6online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>}}, 5: {'0': {'0R1acquisition': <RawEDF | sub-05_task-R1acquisition_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '1R2acquisition': <RawEDF | sub-05_task-R2acquisition_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '2R3online': <RawEDF | sub-05_task-R3online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '3R4online': <RawEDF | sub-05_task-R4online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '4R5online': <RawEDF | sub-05_task-R5online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '5R6online': <RawEDF | sub-05_task-R6online_eeg.edf, 32 x 234496 (458.0 s), ~57.3 MiB, data loaded>}}, 7: {'0': {'0R1acquisition': <RawEDF | sub-07_task-R1acquisition_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '1R2acquisition': <RawEDF | sub-07_task-R2acquisition_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '2R3online': <RawEDF | sub-07_task-R3online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '3R4online': <RawEDF | sub-07_task-R4online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '4R5online': <RawEDF | sub-07_task-R5online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '5R6online': <RawEDF | sub-07_task-R6online_eeg.edf, 32 x 230400 (450.0 s), ~56.3 MiB, data loaded>}}, 35: {'0': {'0R1acquisition': <RawEDF | sub-35_task-R1acquisition_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '1R2acquisition': <RawEDF | sub-35_task-R2acquisition_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '2R3online': <RawEDF | sub-35_task-R3online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '3R4online': <RawEDF | sub-35_task-R4online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '4R5online': <RawEDF | sub-35_task-R5online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>, '5R6online': <RawEDF | sub-35_task-R6online_eeg.edf, 32 x 230912 (451.0 s), ~56.4 MiB, data loaded>}}}
Defining MotorImagery paradigm and CSP+LDA pipeline
paradigm = MotorImagery()
pipelines = {}
pipelines["CSP+LDA"] = make_pipeline(
Covariances(estimator="oas"), CSP(nfilter=6), LDA(solver="lsqr", shrinkage="auto")
)
Within session evaluation of the pipeline
evaluation = WithinSessionEvaluation(
paradigm=paradigm, datasets=[dreyer2023], suffix="examples", overwrite=False
)
results = evaluation.process(pipelines)
Dreyer2023A-WithinSession: 0%| | 0/4 [00:00<?, ?it/s]
0it [00:00, ?it/s]
9it [00:00, 10359.15it/s]
Dreyer2023A-WithinSession: 25%|██▌ | 1/4 [00:02<00:07, 2.40s/it]
0it [00:00, ?it/s]
9it [00:00, 12200.63it/s]
Dreyer2023A-WithinSession: 50%|█████ | 2/4 [00:04<00:04, 2.36s/it]
0it [00:00, ?it/s]
9it [00:00, 12010.42it/s]
Dreyer2023A-WithinSession: 75%|███████▌ | 3/4 [00:07<00:02, 2.34s/it]
0it [00:00, ?it/s]
9it [00:00, 12272.02it/s]
Dreyer2023A-WithinSession: 100%|██████████| 4/4 [00:09<00:00, 2.33s/it]
Dreyer2023A-WithinSession: 100%|██████████| 4/4 [00:09<00:00, 2.34s/it]
Loading dataset info and concatenation with the obtained results
info = dreyer2023.get_subject_info().rename(columns={"score": "score_MR"})
# Creating a new column with subject's age
info["Age"] = 2019 - info["Birth_year"]
# Casting to int for merging
info["subject"] = info["SUJ_ID"].astype(int)
results["subject"] = results["subject"].astype(int)
results_info = results.merge(info, on="subject", how="left")
0%| | 0.00/19.8k [00:00<?, ?B/s]
0%| | 0.00/19.8k [00:00<?, ?B/s]
100%|██████████████████████████████████████| 19.8k/19.8k [00:00<00:00, 108MB/s]
5.1 Plotting subject AUC ROC scores vs subject’s gender
fig, ax = plt.subplots(nrows=2, ncols=2, facecolor="white", figsize=[16, 8], sharey=True)
fig.subplots_adjust(wspace=0.0, hspace=0.5)
sb.boxplot(
data=results_info, y="score", x="SUJ_gender", ax=ax[0, 0], palette="Set1", width=0.3
)
sb.stripplot(
data=results_info,
y="score",
x="SUJ_gender",
ax=ax[0, 0],
palette="Set1",
linewidth=1,
edgecolor="k",
size=3,
alpha=0.3,
zorder=1,
)
ax[0, 0].set_title("AUC ROC scores vs. subject gender")
ax[0, 0].set_xticklabels(["Man", "Woman"])
ax[0, 0].set_ylabel("ROC AUC")
ax[0, 0].set_xlabel(None)
ax[0, 0].set_ylim(0.3, 1)

(0.3, 1.0)
5.2 Plotting subject AUC ROC scores vs subjects’s age per gender
sb.regplot(
data=results_info[results_info["SUJ_gender"] == 1][["score", "Age"]].astype(
"float32"
),
y="score",
x="Age",
ax=ax[0, 1],
scatter_kws={"color": "#e41a1c", "alpha": 0.5},
line_kws={"color": "#e41a1c"},
)
sb.regplot(
data=results_info[results_info["SUJ_gender"] == 2][["score", "Age"]].astype(
"float32"
),
y="score",
x="Age",
ax=ax[0, 1],
scatter_kws={"color": "#377eb8", "alpha": 0.5},
line_kws={"color": "#377eb8"},
)
ax[0, 1].set_title("AUC ROC scores vs. subject age per gender")
ax[0, 1].set_ylabel(None)
ax[0, 1].set_xlabel(None)
ax[0, 1].legend(
handles=[
mpatches.Patch(color="#e41a1c", label="Man"),
mpatches.Patch(color="#377eb8", label="Woman"),
]
)
<matplotlib.legend.Legend object at 0x7f8f29d5fd60>
5.3 Plotting subject AUC ROC scores vs experimenter’s gender
sb.boxplot(
data=results_info, y="score", x="EXP_gender", ax=ax[1, 0], palette="Set1", width=0.3
)
sb.stripplot(
data=results_info,
y="score",
x="EXP_gender",
ax=ax[1, 0],
palette="Set1",
linewidth=1,
edgecolor="k",
size=3,
alpha=0.3,
zorder=1,
)
ax[1, 0].set_title("AUC ROC scores vs. experimenter gender")
ax[1, 0].set_xticklabels(["Man", "Woman"])
ax[1, 0].set_ylabel("ROC AUC")
ax[1, 0].set_xlabel(None)
ax[1, 0].set_ylim(0.3, 1)
(0.3, 1.0)
5.4 Plotting subject AUC ROC scores vs subject’s age
5.5 Obtained results for four selected subjects correspond to the following figure.#
Obtained results for all subjects correspond to the following figure.
Total running time of the script: (1 minutes 24.319 seconds)
Estimated memory usage: 2266 MB