Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bruAristimunha committed Nov 4, 2024
1 parent 21d4517 commit 6562822
Show file tree
Hide file tree
Showing 57 changed files with 1,238 additions and 1,246 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/_images/sphx_glr_plot_benchmark_preprocessing_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/sphx_glr_plot_benchmark_preprocessing_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ <h3>Preprocessing<a class="headerlink" href="#preprocessing" title="Link to this
<a href="../../generated/braindecode.preprocessing.preprocess.html#braindecode.preprocessing.preprocess" title="braindecode.preprocessing.preprocess" class="sphx-glr-backref-module-braindecode-preprocessing sphx-glr-backref-type-py-function"><span class="n">preprocess</span></a><span class="p">(</span><a href="../../generated/braindecode.datasets.BaseConcatDataset.html#braindecode.datasets.BaseConcatDataset" title="braindecode.datasets.BaseConcatDataset" class="sphx-glr-backref-module-braindecode-datasets sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">test_set</span></a><span class="p">,</span> <span class="p">[</span><a href="../../generated/braindecode.preprocessing.Preprocessor.html#braindecode.preprocessing.Preprocessor" title="braindecode.preprocessing.Preprocessor" class="sphx-glr-backref-module-braindecode-preprocessing sphx-glr-backref-type-py-class"><span class="n">Preprocessor</span></a><span class="p">(</span><span class="s2">&quot;crop&quot;</span><span class="p">,</span> <span class="n">tmin</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">tmax</span><span class="o">=</span><span class="mi">24</span><span class="p">)],</span> <span class="n">n_jobs</span><span class="o">=-</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;braindecode.datasets.base.BaseConcatDataset object at 0x7fda6886bee0&gt;
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;braindecode.datasets.base.BaseConcatDataset object at 0x7f407e363d30&gt;
</pre></div>
</div>
<p>In time series targets setup, targets variables are stored in mne.Raw object as channels
Expand Down Expand Up @@ -805,14 +805,14 @@ <h2>Training<a class="headerlink" href="#training" title="Link to this heading">
</div>
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span> epoch r2_train r2_valid train_loss valid_loss lr dur
------- ---------- ---------- ------------ ------------ ------ ------
1 -23.7826 -4.6087 1.8225 11.7419 0.0006 0.5156
2 -1.1990 -0.1716 1.5134 2.6475 0.0006 0.4812
3 -0.3654 -0.4985 1.2625 3.4645 0.0005 0.4458
4 -0.4383 -0.2731 1.2058 2.9438 0.0004 0.4513
5 -0.5982 -0.1512 1.1027 2.6529 0.0002 0.4459
6 -0.6090 -0.1255 1.1121 2.5886 0.0001 0.4458
7 -0.4455 -0.1445 0.9618 2.6339 0.0000 0.4636
8 -0.2790 -0.1755 1.0927 2.7063 0.0000 0.4473
1 -23.7826 -4.6087 1.8225 11.7419 0.0006 0.5139
2 -1.1990 -0.1716 1.5134 2.6475 0.0006 0.4965
3 -0.3654 -0.4985 1.2625 3.4645 0.0005 0.4494
4 -0.4383 -0.2731 1.2058 2.9438 0.0004 0.4491
5 -0.5982 -0.1512 1.1027 2.6529 0.0002 0.4627
6 -0.6090 -0.1255 1.1121 2.5886 0.0001 0.4523
7 -0.4455 -0.1445 0.9618 2.6339 0.0000 0.4707
8 -0.2790 -0.1755 1.0927 2.7063 0.0000 0.4509
</pre></div>
</div>
<p>Obtaining predictions and targets for the test, train, and validation dataset</p>
Expand Down Expand Up @@ -933,8 +933,8 @@ <h2>Plot Results<a class="headerlink" href="#plot-results" title="Link to this h
<a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.tight_layout.html#matplotlib.pyplot.tight_layout" title="matplotlib.pyplot.tight_layout" 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">tight_layout</span></a><span class="p">()</span>
</pre></div>
</div>
<img src="../../_images/sphx_glr_plot_bcic_iv_4_ecog_cropped_002.png" srcset="../../_images/sphx_glr_plot_bcic_iv_4_ecog_cropped_002.png" alt="plot bcic iv 4 ecog cropped" class = "sphx-glr-single-img"/><p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (2 minutes 53.405 seconds)</p>
<p><strong>Estimated memory usage:</strong> 1286 MB</p>
<img src="../../_images/sphx_glr_plot_bcic_iv_4_ecog_cropped_002.png" srcset="../../_images/sphx_glr_plot_bcic_iv_4_ecog_cropped_002.png" alt="plot bcic iv 4 ecog cropped" class = "sphx-glr-single-img"/><p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (2 minutes 36.934 seconds)</p>
<p><strong>Estimated memory usage:</strong> 1547 MB</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-advanced-training-plot-bcic-iv-4-ecog-cropped-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../../_downloads/10fc813a8f78253f4bf301264950f5c1/plot_bcic_iv_4_ecog_cropped.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">plot_bcic_iv_4_ecog_cropped.ipynb</span></code></a></p>
Expand Down
14 changes: 7 additions & 7 deletions dev/auto_examples/advanced_training/plot_data_augmentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ <h3><a class="toc-backref" href="#id3" role="doc-backlink">Preprocessing</a><a c
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>/home/runner/work/braindecode/braindecode/braindecode/preprocessing/preprocess.py:69: UserWarning: Preprocessing choices with lambda functions cannot be saved.
warn(&quot;Preprocessing choices with lambda functions cannot be saved.&quot;)

&lt;braindecode.datasets.moabb.MOABBDataset object at 0x7fda51d45a20&gt;
&lt;braindecode.datasets.moabb.MOABBDataset object at 0x7f3f954edb70&gt;
</pre></div>
</div>
</section>
Expand Down Expand Up @@ -756,10 +756,10 @@ <h3><a class="toc-backref" href="#id10" role="doc-backlink">Create an EEGClassif
</div>
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span> epoch train_accuracy train_loss valid_acc valid_accuracy valid_loss lr dur
------- ---------------- ------------ ----------- ---------------- ------------ ------ ------
1 0.2639 1.4655 0.2639 0.2639 1.5266 0.0006 1.8022
2 0.3299 1.3119 0.3194 0.3194 1.3948 0.0005 1.6046
3 0.4757 1.1941 0.2986 0.2986 1.3259 0.0002 1.5951
4 0.5625 1.1671 0.3333 0.3333 1.3025 0.0000 1.6072
1 0.2639 1.4655 0.2639 0.2639 1.5266 0.0006 1.7628
2 0.3299 1.3119 0.3194 0.3194 1.3948 0.0005 1.5741
3 0.4757 1.1941 0.2986 0.2986 1.3259 0.0002 1.5800
4 0.5625 1.1671 0.3333 0.3333 1.3025 0.0000 1.5954

&lt;class &#39;braindecode.classifier.EEGClassifier&#39;&gt;[initialized](
module_=============================================================================================================================================
Expand Down Expand Up @@ -813,8 +813,8 @@ <h3><a class="toc-backref" href="#id12" role="doc-backlink">Setting the data aug
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><a href="../../generated/braindecode.datasets.BaseConcatDataset.html#braindecode.datasets.BaseConcatDataset" title="braindecode.datasets.BaseConcatDataset" class="sphx-glr-backref-module-braindecode-datasets sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">train_set</span></a><span class="o">.</span><a href="../../generated/braindecode.augmentation.FrequencyShift.html#braindecode.augmentation.FrequencyShift" title="braindecode.augmentation.FrequencyShift" class="sphx-glr-backref-module-braindecode-augmentation sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">transform</span></a> <span class="o">=</span> <a href="../../generated/braindecode.augmentation.Compose.html#braindecode.augmentation.Compose" title="braindecode.augmentation.Compose" class="sphx-glr-backref-module-braindecode-augmentation sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">composed_transforms</span></a>
</pre></div>
</div>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 18.178 seconds)</p>
<p><strong>Estimated memory usage:</strong> 789 MB</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 18.260 seconds)</p>
<p><strong>Estimated memory usage:</strong> 828 MB</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-advanced-training-plot-data-augmentation-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../../_downloads/1d879df548fa18be8c23d9ca0dc008d4/plot_data_augmentation.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">plot_data_augmentation.ipynb</span></code></a></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ <h3><a class="toc-backref" href="#id10" role="doc-backlink">Preprocessing</a><a
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>/home/runner/work/braindecode/braindecode/braindecode/preprocessing/preprocess.py:69: UserWarning: Preprocessing choices with lambda functions cannot be saved.
warn(&quot;Preprocessing choices with lambda functions cannot be saved.&quot;)

&lt;braindecode.datasets.moabb.MOABBDataset object at 0x7fd9802d7010&gt;
&lt;braindecode.datasets.moabb.MOABBDataset object at 0x7f3fa571bdf0&gt;
</pre></div>
</div>
</section>
Expand Down Expand Up @@ -1352,8 +1352,8 @@ <h3><a class="toc-backref" href="#id19" role="doc-backlink">References</a><a cla
Journal of Neural Engineering, 18(4), 046020.</p>
</aside>
</aside>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 32.945 seconds)</p>
<p><strong>Estimated memory usage:</strong> 748 MB</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 32.658 seconds)</p>
<p><strong>Estimated memory usage:</strong> 825 MB</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-advanced-training-plot-data-augmentation-search-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../../_downloads/2466f8ec5c733d0bd65e187b45d875cc/plot_data_augmentation_search.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">plot_data_augmentation_search.ipynb</span></code></a></p>
Expand Down
Loading

0 comments on commit 6562822

Please sign in to comment.