Skip to content

Commit 7b75275

Browse files
committed
1 parent 598d201 commit 7b75275

File tree

51 files changed

+1210
-942
lines changed

Some content is hidden

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

51 files changed

+1210
-942
lines changed
Binary file not shown.

docs/_downloads/63b412797a45350b72c090ea95e36ee8/plot_Hinss2021_classification.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
set_log_level("info")
4545

46+
4647
##############################################################################
4748
# Create util transformer
4849
# ----------------------
@@ -103,12 +104,11 @@ def transform(self, X):
103104

104105
# To reduce the computation time in the example, we will only use the
105106
# first two subjects.
106-
start_subject = 1
107-
stop_subject = 2
107+
n__subjects = 2
108108
title = "Datasets: "
109109
for dataset in datasets:
110110
title = title + " " + dataset.code
111-
dataset.subject_list = dataset.subject_list[start_subject:stop_subject]
111+
dataset.subject_list = dataset.subject_list[:n__subjects]
112112

113113
##############################################################################
114114
# Create Pipelines
Binary file not shown.
Binary file not shown.

docs/_downloads/c0b6836dfec75ec67ce644b1417286cf/plot_Hinss2021_classification.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"outputs": [],
6464
"source": [
65-
"# Here we define the mne events for the RestingState paradigm.\nevents = dict(easy=2, diff=3)\n# The paradigm is adapted to the P300 paradigm.\nparadigm = RestingStateToP300Adapter(events=events, tmin=0, tmax=0.5)\n# We define a list with the dataset to use\ndatasets = [Hinss2021()]\n\n# To reduce the computation time in the example, we will only use the\n# first two subjects.\nstart_subject = 1\nstop_subject = 2\ntitle = \"Datasets: \"\nfor dataset in datasets:\n title = title + \" \" + dataset.code\n dataset.subject_list = dataset.subject_list[start_subject:stop_subject]"
65+
"# Here we define the mne events for the RestingState paradigm.\nevents = dict(easy=2, diff=3)\n# The paradigm is adapted to the P300 paradigm.\nparadigm = RestingStateToP300Adapter(events=events, tmin=0, tmax=0.5)\n# We define a list with the dataset to use\ndatasets = [Hinss2021()]\n\n# To reduce the computation time in the example, we will only use the\n# first two subjects.\nn__subjects = 2\ntitle = \"Datasets: \"\nfor dataset in datasets:\n title = title + \" \" + dataset.code\n dataset.subject_list = dataset.subject_list[:n__subjects]"
6666
]
6767
},
6868
{
Binary file not shown.
Loading
Loading
40 Bytes
Loading
5 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/auto_examples/advanced_examples/plot_filterbank_csp_vs_csp.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ <h2>Evaluation<a class="headerlink" href="#evaluation" title="Permalink to this
826826
&#39;right_hand&#39;: 12&gt;
827827
warn(f&quot;warnEpochs {epochs}&quot;)
828828

829-
BNCI2014-001-CrossSession: 50%|##### | 1/2 [00:05&lt;00:05, 5.61s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 24 events (all good), 2 – 6 s, baseline off, ~4.1 MB, data loaded,
829+
BNCI2014-001-CrossSession: 50%|##### | 1/2 [00:05&lt;00:05, 5.84s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 24 events (all good), 2 – 6 s, baseline off, ~4.1 MB, data loaded,
830830
&#39;left_hand&#39;: 12
831831
&#39;right_hand&#39;: 12&gt;
832832
warn(f&quot;warnEpochs {epochs}&quot;)
@@ -923,8 +923,8 @@ <h2>Evaluation<a class="headerlink" href="#evaluation" title="Permalink to this
923923
&#39;right_hand&#39;: 12&gt;
924924
warn(f&quot;warnEpochs {epochs}&quot;)
925925

926-
BNCI2014-001-CrossSession: 100%|##########| 2/2 [00:11&lt;00:00, 5.55s/it]
927-
BNCI2014-001-CrossSession: 100%|##########| 2/2 [00:11&lt;00:00, 5.56s/it]
926+
BNCI2014-001-CrossSession: 100%|##########| 2/2 [00:11&lt;00:00, 5.69s/it]
927+
BNCI2014-001-CrossSession: 100%|##########| 2/2 [00:11&lt;00:00, 5.71s/it]
928928
</pre></div>
929929
</div>
930930
<p>After processing the two, we simply concatenate the results.</p>
@@ -969,8 +969,8 @@ <h2>Plot Results<a class="headerlink" href="#plot-results" title="Permalink to t
969969
<a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.show.html#matplotlib.pyplot.show" title="matplotlib.pyplot.show" class="sphx-glr-backref-module-matplotlib-pyplot sphx-glr-backref-type-py-function"><span class="n">plt</span><span class="o">.</span><span class="n">show</span></a><span class="p">()</span>
970970
</pre></div>
971971
</div>
972-
<img src="../../_images/sphx_glr_plot_filterbank_csp_vs_csp_001.png" srcset="../../_images/sphx_glr_plot_filterbank_csp_vs_csp_001.png" alt="plot filterbank csp vs csp" class = "sphx-glr-single-img"/><p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 15.909 seconds)</p>
973-
<p><strong>Estimated memory usage:</strong> 373 MB</p>
972+
<img src="../../_images/sphx_glr_plot_filterbank_csp_vs_csp_001.png" srcset="../../_images/sphx_glr_plot_filterbank_csp_vs_csp_001.png" alt="plot filterbank csp vs csp" class = "sphx-glr-single-img"/><p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 16.350 seconds)</p>
973+
<p><strong>Estimated memory usage:</strong> 220 MB</p>
974974
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-advanced-examples-plot-filterbank-csp-vs-csp-py">
975975
<div class="sphx-glr-download sphx-glr-download-python docutils container">
976976
<p><a class="reference download internal" download="" href="../../_downloads/4c45605b7f9e2012cf86c10fa0f2ed72/plot_filterbank_csp_vs_csp.py"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Python</span> <span class="pre">source</span> <span class="pre">code:</span> <span class="pre">plot_filterbank_csp_vs_csp.py</span></code></a></p>

docs/auto_examples/advanced_examples/plot_grid_search_withinsession.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ <h2>Running the Evaluation<a class="headerlink" href="#running-the-evaluation" t
807807
&#39;left_hand&#39;: 12&gt;
808808
warn(f&quot;warnEpochs {epochs}&quot;)
809809

810-
BNCI2014-001-WithinSession: 100%|##########| 1/1 [00:10&lt;00:00, 10.64s/it]
811-
BNCI2014-001-WithinSession: 100%|##########| 1/1 [00:10&lt;00:00, 10.64s/it]
810+
BNCI2014-001-WithinSession: 100%|##########| 1/1 [00:10&lt;00:00, 10.78s/it]
811+
BNCI2014-001-WithinSession: 100%|##########| 1/1 [00:10&lt;00:00, 10.78s/it]
812812
</pre></div>
813813
</div>
814814
</section>
@@ -882,8 +882,8 @@ <h2>Load Best Model Parameter<a class="headerlink" href="#load-best-model-parame
882882
Best Parameter l1_ratio Session_T VanillaEN: 0.75
883883
</pre></div>
884884
</div>
885-
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 16.409 seconds)</p>
886-
<p><strong>Estimated memory usage:</strong> 252 MB</p>
885+
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 16.766 seconds)</p>
886+
<p><strong>Estimated memory usage:</strong> 124 MB</p>
887887
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-advanced-examples-plot-grid-search-withinsession-py">
888888
<div class="sphx-glr-download sphx-glr-download-python docutils container">
889889
<p><a class="reference download internal" download="" href="../../_downloads/b298e4b36adf2bb5cb6f65682eec852f/plot_grid_search_withinsession.py"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Python</span> <span class="pre">source</span> <span class="pre">code:</span> <span class="pre">plot_grid_search_withinsession.py</span></code></a></p>

docs/auto_examples/advanced_examples/plot_mne_and_scikit_estimators.html

+27-29
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ <h2>A Simple MNE Pipeline<a class="headerlink" href="#a-simple-mne-pipeline" tit
802802
&#39;NonTarget&#39;: 480&gt;
803803
warn(f&quot;warnEpochs {epochs}&quot;)
804804

805-
BNCI2014-009-CrossSession: 33%|###3 | 1/3 [00:03&lt;00:06, 3.20s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
805+
BNCI2014-009-CrossSession: 33%|###3 | 1/3 [00:03&lt;00:06, 3.34s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
806806
&#39;Target&#39;: 96
807807
&#39;NonTarget&#39;: 480&gt;
808808
warn(f&quot;warnEpochs {epochs}&quot;)
@@ -815,40 +815,38 @@ <h2>A Simple MNE Pipeline<a class="headerlink" href="#a-simple-mne-pipeline" tit
815815
&#39;NonTarget&#39;: 480&gt;
816816
warn(f&quot;warnEpochs {epochs}&quot;)
817817

818-
BNCI2014-009-CrossSession: 67%|######6 | 2/3 [00:06&lt;00:03, 3.08s/it]/home/runner/work/moabb/moabb/.venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host &#39;lampx.tugraz.at&#39;. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
818+
BNCI2014-009-CrossSession: 67%|######6 | 2/3 [00:06&lt;00:03, 3.13s/it]/home/runner/work/moabb/moabb/.venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host &#39;lampx.tugraz.at&#39;. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
819819
warnings.warn(
820820

821821

822822
0%| | 0.00/18.5M [00:00&lt;?, ?B/s]
823823

824-
0%| | 16.4k/18.5M [00:00&lt;01:54, 162kB/s]
824+
0%| | 8.19k/18.5M [00:00&lt;05:27, 56.5kB/s]
825825

826-
0%| | 32.8k/18.5M [00:00&lt;01:53, 162kB/s]
826+
0%| | 32.8k/18.5M [00:00&lt;02:31, 122kB/s]
827827

828-
1%|▏ | 96.3k/18.5M [00:00&lt;00:49, 376kB/s]
828+
1%|▏ | 96.3k/18.5M [00:00&lt;01:09, 265kB/s]
829829

830-
1%|▍ | 209k/18.5M [00:00&lt;00:27, 668kB/s]
830+
1%|▍ | 209k/18.5M [00:00&lt;00:39, 464kB/s]
831831

832-
2%|▉ | 432k/18.5M [00:00&lt;00:14, 1.23MB/s]
832+
2%|▉ | 432k/18.5M [00:00&lt;00:21, 847kB/s]
833833

834-
5%|█▊ | 889k/18.5M [00:00&lt;00:07, 2.34MB/s]
834+
5%|█▊ | 889k/18.5M [00:00&lt;00:10, 1.62MB/s]
835835

836-
10%|███▌ | 1.80M/18.5M [00:00&lt;00:03, 4.51MB/s]
836+
10%|███▌ | 1.80M/18.5M [00:01&lt;00:05, 3.13MB/s]
837837

838-
20%|███████▏ | 3.62M/18.5M [00:00&lt;00:01, 8.81MB/s]
838+
20%|███████▏ | 3.62M/18.5M [00:01&lt;00:02, 6.10MB/s]
839839

840-
33%|████████████ | 6.18M/18.5M [00:00&lt;00:00, 14.0MB/s]
840+
36%|█████████████▍ | 6.73M/18.5M [00:01&lt;00:01, 10.8MB/s]
841841

842-
45%|████████████████ | 8.42M/18.5M [00:01&lt;00:00, 16.5MB/s]
842+
52%|███████████████████▎ | 9.67M/18.5M [00:01&lt;00:00, 13.7MB/s]
843843

844-
59%|█████████████████████ | 11.0M/18.5M [00:01&lt;00:00, 19.3MB/s]
844+
69%|█████████████████████████▌ | 12.8M/18.5M [00:01&lt;00:00, 16.1MB/s]
845845

846-
75%|███████████████████████████▊ | 13.9M/18.5M [00:01&lt;00:00, 22.1MB/s]
847-
848-
91%|█████████████████████████████████▋ | 16.8M/18.5M [00:01&lt;00:00, 24.2MB/s]
846+
85%|███████████████████████████████▍ | 15.7M/18.5M [00:01&lt;00:00, 17.3MB/s]
849847

850848
0%| | 0.00/18.5M [00:00&lt;?, ?B/s]
851-
100%|█████████████████████████████████████| 18.5M/18.5M [00:00&lt;00:00, 75.4GB/s]
849+
100%|█████████████████████████████████████| 18.5M/18.5M [00:00&lt;00:00, 63.8GB/s]
852850
/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
853851
&#39;Target&#39;: 96
854852
&#39;NonTarget&#39;: 480&gt;
@@ -862,8 +860,8 @@ <h2>A Simple MNE Pipeline<a class="headerlink" href="#a-simple-mne-pipeline" tit
862860
&#39;NonTarget&#39;: 480&gt;
863861
warn(f&quot;warnEpochs {epochs}&quot;)
864862

865-
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:12&lt;00:00, 4.50s/it]
866-
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:12&lt;00:00, 4.13s/it]
863+
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:13&lt;00:00, 4.89s/it]
864+
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:13&lt;00:00, 4.43s/it]
867865
</pre></div>
868866
</div>
869867
</section>
@@ -905,7 +903,7 @@ <h2>Advanced MNE Pipeline<a class="headerlink" href="#advanced-mne-pipeline" tit
905903
&#39;NonTarget&#39;: 480&gt;
906904
warn(f&quot;warnEpochs {epochs}&quot;)
907905

908-
BNCI2014-009-CrossSession: 33%|###3 | 1/3 [00:03&lt;00:06, 3.42s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
906+
BNCI2014-009-CrossSession: 33%|###3 | 1/3 [00:03&lt;00:07, 3.61s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
909907
&#39;Target&#39;: 96
910908
&#39;NonTarget&#39;: 480&gt;
911909
warn(f&quot;warnEpochs {epochs}&quot;)
@@ -918,7 +916,7 @@ <h2>Advanced MNE Pipeline<a class="headerlink" href="#advanced-mne-pipeline" tit
918916
&#39;NonTarget&#39;: 480&gt;
919917
warn(f&quot;warnEpochs {epochs}&quot;)
920918

921-
BNCI2014-009-CrossSession: 67%|######6 | 2/3 [00:06&lt;00:02, 2.95s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
919+
BNCI2014-009-CrossSession: 67%|######6 | 2/3 [00:06&lt;00:03, 3.02s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
922920
&#39;Target&#39;: 96
923921
&#39;NonTarget&#39;: 480&gt;
924922
warn(f&quot;warnEpochs {epochs}&quot;)
@@ -931,8 +929,8 @@ <h2>Advanced MNE Pipeline<a class="headerlink" href="#advanced-mne-pipeline" tit
931929
&#39;NonTarget&#39;: 480&gt;
932930
warn(f&quot;warnEpochs {epochs}&quot;)
933931

934-
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:10&lt;00:00, 3.44s/it]
935-
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:10&lt;00:00, 3.35s/it]
932+
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:10&lt;00:00, 3.58s/it]
933+
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:10&lt;00:00, 3.49s/it]
936934
</pre></div>
937935
</div>
938936
</section>
@@ -969,7 +967,7 @@ <h2>Numpy-based Pipeline<a class="headerlink" href="#numpy-based-pipeline" title
969967
&#39;NonTarget&#39;: 480&gt;
970968
warn(f&quot;warnEpochs {epochs}&quot;)
971969

972-
BNCI2014-009-CrossSession: 33%|###3 | 1/3 [00:05&lt;00:10, 5.08s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
970+
BNCI2014-009-CrossSession: 33%|###3 | 1/3 [00:05&lt;00:10, 5.21s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
973971
&#39;Target&#39;: 96
974972
&#39;NonTarget&#39;: 480&gt;
975973
warn(f&quot;warnEpochs {epochs}&quot;)
@@ -982,7 +980,7 @@ <h2>Numpy-based Pipeline<a class="headerlink" href="#numpy-based-pipeline" title
982980
&#39;NonTarget&#39;: 480&gt;
983981
warn(f&quot;warnEpochs {epochs}&quot;)
984982

985-
BNCI2014-009-CrossSession: 67%|######6 | 2/3 [00:09&lt;00:04, 4.97s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
983+
BNCI2014-009-CrossSession: 67%|######6 | 2/3 [00:10&lt;00:05, 5.05s/it]/home/runner/work/moabb/moabb/moabb/datasets/preprocessing.py:279: UserWarning: warnEpochs &lt;Epochs | 576 events (all good), 0 – 0.800781 s, baseline off, ~14.5 MB, data loaded,
986984
&#39;Target&#39;: 96
987985
&#39;NonTarget&#39;: 480&gt;
988986
warn(f&quot;warnEpochs {epochs}&quot;)
@@ -995,8 +993,8 @@ <h2>Numpy-based Pipeline<a class="headerlink" href="#numpy-based-pipeline" title
995993
&#39;NonTarget&#39;: 480&gt;
996994
warn(f&quot;warnEpochs {epochs}&quot;)
997995

998-
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:14&lt;00:00, 4.94s/it]
999-
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:14&lt;00:00, 4.96s/it]
996+
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:15&lt;00:00, 5.00s/it]
997+
BNCI2014-009-CrossSession: 100%|##########| 3/3 [00:15&lt;00:00, 5.03s/it]
1000998
</pre></div>
1001999
</div>
10021000
</section>
@@ -1023,8 +1021,8 @@ <h2>Combining Results<a class="headerlink" href="#combining-results" title="Perm
10231021
<a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.show.html#matplotlib.pyplot.show" title="matplotlib.pyplot.show" class="sphx-glr-backref-module-matplotlib-pyplot sphx-glr-backref-type-py-function"><span class="n">plt</span><span class="o">.</span><span class="n">show</span></a><span class="p">()</span>
10241022
</pre></div>
10251023
</div>
1026-
<img src="../../_images/sphx_glr_plot_mne_and_scikit_estimators_002.png" srcset="../../_images/sphx_glr_plot_mne_and_scikit_estimators_002.png" alt="Algorithm comparison" class = "sphx-glr-single-img"/><p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 45.729 seconds)</p>
1027-
<p><strong>Estimated memory usage:</strong> 365 MB</p>
1024+
<img src="../../_images/sphx_glr_plot_mne_and_scikit_estimators_002.png" srcset="../../_images/sphx_glr_plot_mne_and_scikit_estimators_002.png" alt="Algorithm comparison" class = "sphx-glr-single-img"/><p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 47.674 seconds)</p>
1025+
<p><strong>Estimated memory usage:</strong> 191 MB</p>
10281026
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-advanced-examples-plot-mne-and-scikit-estimators-py">
10291027
<div class="sphx-glr-download sphx-glr-download-python docutils container">
10301028
<p><a class="reference download internal" download="" href="../../_downloads/3bb6d35e266c94de44c44ec75aa9d550/plot_mne_and_scikit_estimators.py"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Python</span> <span class="pre">source</span> <span class="pre">code:</span> <span class="pre">plot_mne_and_scikit_estimators.py</span></code></a></p>

0 commit comments

Comments
 (0)