braindecode 1.4.0.dev981__tar.gz → 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- braindecode-1.5.0/.circleci/artifact_path +1 -0
- braindecode-1.5.0/.circleci/config.yml +56 -0
- braindecode-1.5.0/.codacy.yaml +26 -0
- braindecode-1.5.0/.github/scripts/convert_to_notebook.py +88 -0
- braindecode-1.5.0/.github/workflows/docs.yml +99 -0
- braindecode-1.5.0/.github/workflows/link-check.yml +93 -0
- braindecode-1.5.0/.github/workflows/link-to-doc.yaml +14 -0
- braindecode-1.5.0/.github/workflows/pre-commit.yaml +14 -0
- braindecode-1.5.0/.github/workflows/push-artifact-to-circleci.yml +52 -0
- braindecode-1.5.0/.github/workflows/release.yml +74 -0
- braindecode-1.5.0/.github/workflows/tests.yml +66 -0
- braindecode-1.5.0/.github/workflows/whats-new.yml +16 -0
- braindecode-1.5.0/.gitignore +74 -0
- braindecode-1.5.0/.pre-commit-config.yaml +146 -0
- braindecode-1.5.0/CITATION.cff +97 -0
- braindecode-1.5.0/CONTRIBUTING.md +480 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/NOTICE.txt +5 -0
- {braindecode-1.4.0.dev981/braindecode.egg-info → braindecode-1.5.0}/PKG-INFO +6 -2
- braindecode-1.5.0/bandit.yml +1 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/base.py +199 -20
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/sleep_physionet.py +15 -1
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/__init__.py +16 -3
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/attentionbasenet.py +3 -2
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/base.py +16 -4
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/bendr.py +92 -28
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/biot.py +61 -1
- braindecode-1.5.0/braindecode/models/codebrain.py +977 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/config.py +5 -4
- braindecode-1.5.0/braindecode/models/emg2qwerty.py +714 -0
- braindecode-1.5.0/braindecode/models/interpolated.py +182 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/labram.py +208 -266
- braindecode-1.5.0/braindecode/models/meta_neuromotor.py +1774 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/reve.py +1 -1
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/signal_jepa.py +463 -38
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/summary.csv +7 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/syncnet.py +17 -13
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/tsinception.py +1 -1
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/util.py +151 -20
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/__init__.py +2 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/attention.py +45 -16
- braindecode-1.5.0/braindecode/modules/interpolation.py +201 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/preprocessing/eegprep_preprocess.py +51 -6
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/preprocessing/preprocess.py +38 -17
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/preprocessing/windowers.py +13 -4
- braindecode-1.5.0/braindecode/version.py +1 -0
- braindecode-1.5.0/braindecode/visualization/__init__.py +45 -0
- braindecode-1.5.0/braindecode/visualization/attribution.py +152 -0
- braindecode-1.5.0/braindecode/visualization/frequency.py +89 -0
- braindecode-1.5.0/braindecode/visualization/metrics.py +414 -0
- braindecode-1.5.0/braindecode/visualization/sanity.py +117 -0
- braindecode-1.5.0/braindecode/visualization/topology.py +64 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0/braindecode.egg-info}/PKG-INFO +6 -2
- braindecode-1.5.0/braindecode.egg-info/SOURCES.txt +767 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode.egg-info/requires.txt +6 -1
- braindecode-1.5.0/codecov.yml +14 -0
- braindecode-1.5.0/docs/_build/html/_downloads/090305d06248840b75133975e5121f41/plot_sleep_staging_chambon2018.ipynb +302 -0
- braindecode-1.5.0/docs/_build/html/_downloads/0ada35f18bb95235ba2842270483081f/plot_finetune_foundation_model.ipynb +219 -0
- braindecode-1.5.0/docs/_build/html/_downloads/0f2bf063e08b7d05b80e0004fcbbb6f9/benchmark_lazy_eager_loading.ipynb +183 -0
- braindecode-1.5.0/docs/_build/html/_downloads/137d0b161de96c88644fd65258fc20b5/tutorial_create_fixed_window_length.ipynb +190 -0
- braindecode-1.5.0/docs/_build/html/_downloads/1c6590d134fa0befda654e89aa55b2ac/plot_benchmark_preprocessing.ipynb +104 -0
- braindecode-1.5.0/docs/_build/html/_downloads/1d879df548fa18be8c23d9ca0dc008d4/plot_data_augmentation.ipynb +259 -0
- braindecode-1.5.0/docs/_build/html/_downloads/2466f8ec5c733d0bd65e187b45d875cc/plot_data_augmentation_search.ipynb +302 -0
- braindecode-1.5.0/docs/_build/html/_downloads/263464a28477cf8decb861ae6e2e9be7/plot_how_train_test_and_tune.ipynb +375 -0
- braindecode-1.5.0/docs/_build/html/_downloads/3862cafd7f0d815e434319ffe525afc8/plot_bcic_iv_2a_moabb_cropped.ipynb +244 -0
- braindecode-1.5.0/docs/_build/html/_downloads/408ca4ffd0ea1f76faa9ef602734ac94/plot_tuh_eeg_corpus.ipynb +187 -0
- braindecode-1.5.0/docs/_build/html/_downloads/64c99f99abefd72dcd2a3f5e7ddebfce/plot_channel_interpolation.ipynb +222 -0
- braindecode-1.5.0/docs/_build/html/_downloads/66ea18b3b9cf0802bbd32bb903ab554e/plot_temporal_generalization.ipynb +226 -0
- braindecode-1.5.0/docs/_build/html/_downloads/71f6b29d340c0ff57ee55b0da637518b/plot_interpretability.ipynb +266 -0
- braindecode-1.5.0/docs/_build/html/_downloads/75a73c7d94f3a671fd3dec28f4031ead/plot_regression.ipynb +212 -0
- braindecode-1.5.0/docs/_build/html/_downloads/84fbcd59a346e5e56758285122dc69e2/plot_sleep_staging_eldele2021.ipynb +302 -0
- braindecode-1.5.0/docs/_build/html/_downloads/8616a7f968141825e56ab3e3d59be449/plot_tuh_discrete_multitarget.ipynb +169 -0
- braindecode-1.5.0/docs/_build/html/_downloads/8b5ba06718764b959e8dea1dd0bb97df/plot_sleep_staging_usleep.ipynb +266 -0
- braindecode-1.5.0/docs/_build/html/_downloads/91651c9d4fde110b4a53f5775a91acc5/plot_mne_dataset_example.ipynb +104 -0
- braindecode-1.5.0/docs/_build/html/_downloads/93fdea8cbadaf0e3afa2eb2be3ebc483/bcic_iv_4_ecog_trial.ipynb +376 -0
- braindecode-1.5.0/docs/_build/html/_downloads/9a4447462c3b255ba7e5ca212bbadd52/plot_bcic_iv_2a_moabb_trial.ipynb +282 -0
- braindecode-1.5.0/docs/_build/html/_downloads/9ecad1eb1db853df0ba20dbb97303c02/plot_exca_config.ipynb +439 -0
- braindecode-1.5.0/docs/_build/html/_downloads/a2f12129facb042643a99d4b9de1886d/bcic_iv_4_ecog_cropped.ipynb +363 -0
- braindecode-1.5.0/docs/_build/html/_downloads/a39e4245738e55e0eb7084c545ed05bc/plot_hyperparameter_tuning_with_scikit-learn.ipynb +257 -0
- braindecode-1.5.0/docs/_build/html/_downloads/a6249715d3c30cb41c4af85938cca008/plot_moabb_dataset_example.ipynb +140 -0
- braindecode-1.5.0/docs/_build/html/_downloads/a868f9d41de95f5f6defc26e291cf4aa/plot_preprocessing_classes.ipynb +194 -0
- braindecode-1.5.0/docs/_build/html/_downloads/a86d0c5f3a882a069df1683a708d3e25/plot_train_in_pure_pytorch_and_pytorch_lightning.ipynb +250 -0
- braindecode-1.5.0/docs/_build/html/_downloads/aa8426d97090e7b3062c4e4732c3214a/plot_relative_positioning.ipynb +266 -0
- braindecode-1.5.0/docs/_build/html/_downloads/b7179beb2f9c065d6149a3b430876706/bids_dataset_example.ipynb +97 -0
- braindecode-1.5.0/docs/_build/html/_downloads/b9d19304ecd233ea7a79d4365316ea49/plot_load_save_datasets.ipynb +176 -0
- braindecode-1.5.0/docs/_build/html/_downloads/cb62940d13f700ed2b9e813705e9d437/plot_moabb_benchmark.ipynb +122 -0
- braindecode-1.5.0/docs/_build/html/_downloads/cd24c95e5e6c988ebb6ece50ac672ab5/plot_bcic_iv_2a_eegprep_cleaning.ipynb +271 -0
- braindecode-1.5.0/docs/_build/html/_downloads/f158ead3e4720f6f4685ff1d3f48dc15/plot_hub_integration.ipynb +201 -0
- braindecode-1.5.0/docs/_build/html/_downloads/f3c89d39e947a121c7920b4d415413a2/plot_split_dataset.ipynb +180 -0
- braindecode-1.5.0/docs/_build/html/_downloads/f7b38cac92c078838442753121efc297/plot_custom_dataset_example.ipynb +140 -0
- braindecode-1.5.0/docs/_build/html/_downloads/fa7c2c982eb044a92a764e44b7365fd6/plot_load_pretrained_models.ipynb +222 -0
- braindecode-1.5.0/docs/_build/html/_downloads/fff46913db5173d3ae22c1113acffb45/plot_basic_training_epochs.ipynb +237 -0
- braindecode-1.5.0/docs/_extra/robots.txt +6 -0
- braindecode-1.5.0/docs/_static/brain_only.png +0 -0
- braindecode-1.5.0/docs/_static/braindecode.png +0 -0
- braindecode-1.5.0/docs/_static/braindecode.svg +1289 -0
- braindecode-1.5.0/docs/_static/braindecode_install.png +0 -0
- braindecode-1.5.0/docs/_static/braindecode_long.png +0 -0
- braindecode-1.5.0/docs/_static/braindecode_long.svg +1289 -0
- braindecode-1.5.0/docs/_static/braindecode_small.svg +1303 -0
- braindecode-1.5.0/docs/_static/braindecode_symbol.png +0 -0
- braindecode-1.5.0/docs/_static/cropped_explanation.png +0 -0
- braindecode-1.5.0/docs/_static/hf-logo-with-title.png +0 -0
- braindecode-1.5.0/docs/_static/institution_logos/donders.png +0 -0
- braindecode-1.5.0/docs/_static/institution_logos/donders.svg +98 -0
- braindecode-1.5.0/docs/_static/institution_logos/inria.png +0 -0
- braindecode-1.5.0/docs/_static/institution_logos/ucsd.png +0 -0
- braindecode-1.5.0/docs/_static/institution_logos/unifreiburg.png +0 -0
- braindecode-1.5.0/docs/_static/landing.css +2164 -0
- braindecode-1.5.0/docs/_static/landing.js +276 -0
- braindecode-1.5.0/docs/_static/model/DGCNN.gif +0 -0
- braindecode-1.5.0/docs/_static/model/SleepStagerChambon2018.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/SyncNet.png +0 -0
- braindecode-1.5.0/docs/_static/model/biot.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/criss-cross-attention.png +0 -0
- braindecode-1.5.0/docs/_static/model/eeginceptionerp.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/eegitnet.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/eegnex.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/eegsym.png +0 -0
- braindecode-1.5.0/docs/_static/model/eegtcnet.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/simpleconv.png +0 -0
- braindecode-1.5.0/docs/_static/model/sjepa_contextual.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/sjepa_post-local.jpg +0 -0
- braindecode-1.5.0/docs/_static/model/sjepa_pre-local.jpg +0 -0
- braindecode-1.5.0/docs/_static/model_cat/attention.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/channel.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/convolution.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/filterbank.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/gnn.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/interpre.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/lbm.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/rnn.png +0 -0
- braindecode-1.5.0/docs/_static/model_cat/spd.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_attention.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_braindecode.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_channel.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_convolution.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_filterbank.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_interpretable.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_lbm.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_recurrent.png +0 -0
- braindecode-1.5.0/docs/_static/model_connection/litmap_spd_learn.png +0 -0
- braindecode-1.5.0/docs/_static/preprocess/downsample.png +0 -0
- braindecode-1.5.0/docs/_static/preprocess/highpass.png +0 -0
- braindecode-1.5.0/docs/_static/preprocess/sph_spline_interp.png +0 -0
- braindecode-1.5.0/docs/_static/style.css +380 -0
- braindecode-1.5.0/docs/_static/trialwise_explanation.png +0 -0
- braindecode-1.5.0/docs/_static/versions.json +47 -0
- braindecode-1.5.0/docs/_templates/copyright.html +1 -0
- braindecode-1.5.0/docs/_templates/homepage.html +75 -0
- braindecode-1.5.0/docs/_templates/layout.html +79 -0
- braindecode-1.5.0/docs/_templates/sections/announcement.html +21 -0
- braindecode-1.5.0/docs/_templates/sg_launcher_links.html +29 -0
- braindecode-1.5.0/docs/_templates/sidebar-quicklinks.html +12 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/api.rst +106 -4
- braindecode-1.5.0/docs/auto_examples/advanced_training/bcic_iv_4_ecog_cropped.ipynb +363 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/bcic_iv_4_ecog_cropped.rst +656 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/index.rst +191 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_data_augmentation.ipynb +259 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_data_augmentation.rst +2000 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_data_augmentation_search.ipynb +302 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_data_augmentation_search.rst +870 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_exca_config.ipynb +439 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_exca_config.rst +1005 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_finetune_foundation_model.ipynb +219 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_finetune_foundation_model.rst +576 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_interpretability.ipynb +266 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_interpretability.rst +1266 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_moabb_benchmark.ipynb +122 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_moabb_benchmark.rst +326 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_relative_positioning.ipynb +266 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_relative_positioning.rst +902 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_temporal_generalization.ipynb +226 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/plot_temporal_generalization.rst +648 -0
- braindecode-1.5.0/docs/auto_examples/advanced_training/sg_execution_times.rst +61 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/bcic_iv_4_ecog_trial.ipynb +376 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/bcic_iv_4_ecog_trial.rst +603 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/index.rst +137 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_sleep_staging_chambon2018.ipynb +302 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_sleep_staging_chambon2018.rst +2238 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.ipynb +302 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_sleep_staging_eldele2021.rst +2476 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.ipynb +266 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_sleep_staging_usleep.rst +2229 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.ipynb +187 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/plot_tuh_eeg_corpus.rst +499 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/sg_execution_times.rst +52 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/tutorial_create_fixed_window_length.ipynb +190 -0
- braindecode-1.5.0/docs/auto_examples/applied_examples/tutorial_create_fixed_window_length.rst +365 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.ipynb +183 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/benchmark_lazy_eager_loading.rst +504 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/bids_dataset_example.ipynb +97 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/bids_dataset_example.rst +110 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/index.rst +209 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_benchmark_preprocessing.ipynb +104 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_benchmark_preprocessing.rst +291 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_custom_dataset_example.ipynb +140 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_custom_dataset_example.rst +271 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_hub_integration.ipynb +201 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_hub_integration.rst +646 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_load_save_datasets.ipynb +176 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_load_save_datasets.rst +357 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_mne_dataset_example.ipynb +104 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_mne_dataset_example.rst +218 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_moabb_dataset_example.ipynb +140 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_moabb_dataset_example.rst +320 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_split_dataset.ipynb +180 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_split_dataset.rst +835 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_tuh_discrete_multitarget.ipynb +169 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/plot_tuh_discrete_multitarget.rst +379 -0
- braindecode-1.5.0/docs/auto_examples/datasets_io/sg_execution_times.rst +64 -0
- braindecode-1.5.0/docs/auto_examples/index.rst +748 -0
- braindecode-1.5.0/docs/auto_examples/model_building/index.rst +227 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_basic_training_epochs.ipynb +237 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_basic_training_epochs.rst +1936 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_bcic_iv_2a_eegprep_cleaning.ipynb +271 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_bcic_iv_2a_eegprep_cleaning.rst +2276 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.ipynb +244 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_cropped.rst +2206 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_trial.ipynb +282 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_bcic_iv_2a_moabb_trial.rst +2206 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_channel_interpolation.ipynb +222 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_channel_interpolation.rst +576 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_how_train_test_and_tune.ipynb +375 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_how_train_test_and_tune.rst +1092 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.ipynb +257 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.rst +647 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_load_pretrained_models.ipynb +222 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_load_pretrained_models.rst +935 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_preprocessing_classes.ipynb +194 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_preprocessing_classes.rst +438 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_regression.ipynb +212 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_regression.rst +482 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_train_in_pure_pytorch_and_pytorch_lightning.ipynb +250 -0
- braindecode-1.5.0/docs/auto_examples/model_building/plot_train_in_pure_pytorch_and_pytorch_lightning.rst +697 -0
- braindecode-1.5.0/docs/auto_examples/model_building/sg_execution_times.rst +67 -0
- braindecode-1.5.0/docs/auto_examples/sg_execution_times.rst +37 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/cite.rst +2 -2
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/conf.py +34 -2
- braindecode-1.5.0/docs/download_mne_references.py +91 -0
- braindecode-1.5.0/docs/generated/activation/braindecode.modules.LogActivation.rst +130 -0
- braindecode-1.5.0/docs/generated/activation/braindecode.modules.SafeLog.rst +135 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.CAT.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.CATLite.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.CBAM.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.ECA.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.EncNet.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.FCA.rst +137 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.GCT.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.GSoP.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.GatherExcite.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.MultiHeadAttention.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.SRM.rst +130 -0
- braindecode-1.5.0/docs/generated/attention/braindecode.modules.SqueezeAndExcitation.rst +130 -0
- braindecode-1.5.0/docs/generated/blocks/braindecode.modules.FeedForwardBlock.rst +127 -0
- braindecode-1.5.0/docs/generated/blocks/braindecode.modules.InceptionBlock.rst +130 -0
- braindecode-1.5.0/docs/generated/blocks/braindecode.modules.MLP.rst +127 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.AmplitudeScale.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.AugmentedDataLoader.rst +21 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.BandstopFilter.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.ChannelsDropout.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.ChannelsReref.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.ChannelsShuffle.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.ChannelsSymmetry.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.Compose.rst +132 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.FTSurrogate.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.FrequencyShift.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.GaussianNoise.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.IdentityTransform.rst +134 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.MaskEncoding.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.Mixup.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SegmentationReconstruction.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SensorsRotation.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SensorsXRotation.rst +123 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SensorsYRotation.rst +123 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SensorsZRotation.rst +123 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SignFlip.rst +134 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.SmoothTimeMask.rst +139 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.TimeReverse.rst +134 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.Transform.rst +137 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.amplitude_scale.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.bandstop_filter.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.channels_dropout.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.channels_permute.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.channels_rereference.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.channels_shuffle.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.frequency_shift.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.ft_surrogate.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.gaussian_noise.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.identity.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.mask_encoding.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.mixup.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.segmentation_reconstruction.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.sensors_rotation.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.sign_flip.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.smooth_time_mask.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.augmentation.functional.time_reverse.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.classifier.EEGClassifier.rst +166 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.BCICompetitionIVDataset4.rst +48 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.BNCI2014_001.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.BaseConcatDataset.rst +66 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.CHBMIT.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.HGD.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.MOABBDataset.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.NMT.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.RawDataset.rst +21 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.RecordDataset.rst +32 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.SIENA.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.SleepPhysionet.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.SleepPhysionetChallenge2018.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.TUH.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.TUHAbnormal.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.TUHEvents.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.WindowsDataset.rst +21 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.bids.BIDSDataset.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.bids.BIDSEpochsDataset.rst +35 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.bids.BIDSIterableDataset.rst +19 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.bids.HubDatasetMixin.rst +39 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.create_from_X_y.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.create_from_mne_epochs.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.datasets.create_from_mne_raw.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.datautil.infer_signal_properties.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.datautil.load_concat_dataset.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.datautil.save_concat_dataset.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.drop_path.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.glorot_weight_zero_bias.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.hilbert_freq.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.identity.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.plv_time.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.rescale_parameter.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.safe_log.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.functional.square.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.models.ATCNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.AttentionBaseNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.AttnSleep.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.BDTCN.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.BENDR.rst +155 -0
- braindecode-1.5.0/docs/generated/braindecode.models.BIOT.rst +155 -0
- braindecode-1.5.0/docs/generated/braindecode.models.BrainModule.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.CBraMod.rst +155 -0
- braindecode-1.5.0/docs/generated/braindecode.models.CTNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.CodeBrain.rst +155 -0
- braindecode-1.5.0/docs/generated/braindecode.models.ContraWR.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.DGCNN.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.Deep4Net.rst +147 -0
- braindecode-1.5.0/docs/generated/braindecode.models.DeepSleepNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGConformer.rst +157 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGITNet.rst +147 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGInceptionERP.rst +147 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGInceptionMI.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGMiner.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGModuleMixin.rst +82 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGNeX.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGNet.rst +147 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGPT.rst +162 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGSimpleConv.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGSym.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EEGTCNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.EMG2QwertyNet.rst +167 -0
- braindecode-1.5.0/docs/generated/braindecode.models.FBCNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.FBLightConvNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.FBMSNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.IFNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.InterpolatedBENDR.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.InterpolatedBIOT.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.InterpolatedLaBraM.rst +160 -0
- braindecode-1.5.0/docs/generated/braindecode.models.InterpolatedModel.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.models.InterpolatedSignalJEPA.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.LUNA.rst +185 -0
- braindecode-1.5.0/docs/generated/braindecode.models.Labram.rst +190 -0
- braindecode-1.5.0/docs/generated/braindecode.models.MEDFormer.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.MSVTNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.MetaNeuromotorHand.rst +167 -0
- braindecode-1.5.0/docs/generated/braindecode.models.PBT.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.REVE.rst +162 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SCCNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SPARCNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SSTDPN.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.ShallowFBCSPNet.rst +147 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SignalJEPA.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SignalJEPA_Contextual.rst +160 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SignalJEPA_PostLocal.rst +160 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SignalJEPA_PreLocal.rst +160 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SincShallowNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SleepStagerBlanco2020.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SleepStagerChambon2018.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.SyncNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.TIDNet.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.TSception.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.models.USleep.rst +150 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AddChannels.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AddEvents.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AddProj.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AddReferenceChannels.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AnnotateAmplitude.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AnnotateBreak.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AnnotateMovement.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AnnotateMuscleZscore.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.AnnotateNan.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Anonymize.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ApplyGradientCompensation.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ApplyHilbert.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ApplyProj.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.CombineChannels.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ComputeBridgedElectrodes.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ComputeCurrentSourceDensity.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Crop.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.CropByAnnotations.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.DelProj.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.DropChannels.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.EEGPrep.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.EqualizeBads.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.EqualizeChannels.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Filter.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.FilterData.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.FindBadChannelsLof.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.FixMagCoilTypes.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.FixStimArtifact.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.InterpolateBads.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.InterpolateBridgedElectrodes.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.InterpolateTo.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.MaxwellFilter.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.NotchFilter.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.OversampledTemporalProjection.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Pick.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.PickChannels.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.PickTypes.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Preprocessor.rst +46 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RealignRaw.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RegressArtifact.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ReinterpolateRemovedChannels.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveBadChannels.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveBadChannelsNoLocs.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveBadWindows.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveBursts.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveCommonAverageReference.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveDCOffset.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveDrifts.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RemoveFlatChannels.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.RenameChannels.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.ReorderChannels.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Resample.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Resampling.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.Rescale.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SavgolFilter.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SetAnnotations.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SetBipolarReference.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SetChannelTypes.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SetEEGReference.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SetMeasDate.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.SetMontage.rst +25 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.create_fixed_length_windows.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.create_windows_from_events.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.create_windows_from_target_channels.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.exponential_moving_demean.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.exponential_moving_standardize.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.filterbank.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.preprocessing.preprocess.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.regressor.EEGRegressor.rst +161 -0
- braindecode-1.5.0/docs/generated/braindecode.samplers.BalancedSequenceSampler.rst +36 -0
- braindecode-1.5.0/docs/generated/braindecode.samplers.DistributedRecordingSampler.rst +41 -0
- braindecode-1.5.0/docs/generated/braindecode.samplers.DistributedRelativePositioningSampler.rst +38 -0
- braindecode-1.5.0/docs/generated/braindecode.samplers.RecordingSampler.rst +39 -0
- braindecode-1.5.0/docs/generated/braindecode.samplers.RelativePositioningSampler.rst +36 -0
- braindecode-1.5.0/docs/generated/braindecode.samplers.SequenceSampler.rst +23 -0
- braindecode-1.5.0/docs/generated/braindecode.training.CroppedLoss.rst +130 -0
- braindecode-1.5.0/docs/generated/braindecode.training.CroppedTimeSeriesEpochScoring.rst +52 -0
- braindecode-1.5.0/docs/generated/braindecode.training.CroppedTrialEpochScoring.rst +57 -0
- braindecode-1.5.0/docs/generated/braindecode.training.PostEpochTrainScoring.rst +52 -0
- braindecode-1.5.0/docs/generated/braindecode.training.TimeSeriesLoss.rst +130 -0
- braindecode-1.5.0/docs/generated/braindecode.training.mixup_criterion.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.training.predict_trials.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.training.trial_preds_from_window_preds.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.util.set_random_seeds.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.METRIC_NAMES.rst +6 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.SSIM_METRIC_NAMES.rst +6 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.amplitude_gradients.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.amplitude_gradients_per_trial.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.cascading_layer_reset.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.compute_metrics.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.compute_ssim_metrics.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.deconvolution.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.deep_lift.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.guided_backprop.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.input_x_gradient.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.integrated_gradients.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.layer_grad_cam.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.lrp.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.plot_confusion_matrix.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.project_to_topomap.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.random_target.rst +12 -0
- braindecode-1.5.0/docs/generated/braindecode.visualization.saliency.rst +12 -0
- braindecode-1.5.0/docs/generated/convolution/braindecode.modules.AvgPool2dWithConv.rst +130 -0
- braindecode-1.5.0/docs/generated/convolution/braindecode.modules.CausalConv1d.rst +132 -0
- braindecode-1.5.0/docs/generated/convolution/braindecode.modules.CombinedConv.rst +130 -0
- braindecode-1.5.0/docs/generated/convolution/braindecode.modules.Conv2dWithConstraint.rst +121 -0
- braindecode-1.5.0/docs/generated/convolution/braindecode.modules.DepthwiseConv2d.rst +121 -0
- braindecode-1.5.0/docs/generated/filter/braindecode.modules.ChannelInterpolationLayer.rst +130 -0
- braindecode-1.5.0/docs/generated/filter/braindecode.modules.FilterBankLayer.rst +130 -0
- braindecode-1.5.0/docs/generated/filter/braindecode.modules.GeneralizedGaussianFilter.rst +144 -0
- braindecode-1.5.0/docs/generated/layers/braindecode.modules.Chomp1d.rst +135 -0
- braindecode-1.5.0/docs/generated/layers/braindecode.modules.DropPath.rst +135 -0
- braindecode-1.5.0/docs/generated/layers/braindecode.modules.Ensure4d.rst +130 -0
- braindecode-1.5.0/docs/generated/layers/braindecode.modules.SubjectLayers.rst +130 -0
- braindecode-1.5.0/docs/generated/layers/braindecode.modules.TimeDistributed.rst +130 -0
- braindecode-1.5.0/docs/generated/linear/braindecode.modules.LinearWithConstraint.rst +121 -0
- braindecode-1.5.0/docs/generated/linear/braindecode.modules.MaxNormLinear.rst +121 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.LogPowerLayer.rst +6 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.LogVarLayer.rst +6 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.MaxLayer.rst +6 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.MeanLayer.rst +6 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.StatLayer.rst +130 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.StdLayer.rst +6 -0
- braindecode-1.5.0/docs/generated/stats/braindecode.modules.VarLayer.rst +6 -0
- braindecode-1.5.0/docs/generated/util/braindecode.modules.aggregate_probas.rst +12 -0
- braindecode-1.5.0/docs/generated/wrapper/braindecode.modules.Expression.rst +130 -0
- braindecode-1.5.0/docs/generated/wrapper/braindecode.modules.IntermediateOutputWrapper.rst +130 -0
- braindecode-1.5.0/docs/index.rst +749 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/install/install.rst +1 -1
- braindecode-1.5.0/docs/links.inc +69 -0
- braindecode-1.5.0/docs/models/filterbank.bib +37 -0
- braindecode-1.5.0/docs/models/small_attention.bib +60 -0
- braindecode-1.5.0/docs/prepare_summary_tables.py +306 -0
- braindecode-1.5.0/docs/references.bib +2874 -0
- braindecode-1.5.0/docs/sphinxext/gh_substitutions.py +29 -0
- braindecode-1.5.0/docs/sphinxext/zoo_data_gen.py +199 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/whats_new.rst +175 -13
- braindecode-1.5.0/examples/README.rst +9 -0
- braindecode-1.5.0/examples/advanced_training/README.txt +5 -0
- braindecode-1.5.0/examples/advanced_training/bcic_iv_4_ecog_cropped.py +486 -0
- braindecode-1.5.0/examples/advanced_training/plot_data_augmentation.py +285 -0
- braindecode-1.5.0/examples/advanced_training/plot_data_augmentation_search.py +592 -0
- braindecode-1.5.0/examples/advanced_training/plot_exca_config.py +490 -0
- braindecode-1.5.0/examples/advanced_training/plot_finetune_foundation_model.py +277 -0
- braindecode-1.5.0/examples/advanced_training/plot_interpretability.py +975 -0
- braindecode-1.5.0/examples/advanced_training/plot_moabb_benchmark.py +150 -0
- braindecode-1.5.0/examples/advanced_training/plot_relative_positioning.py +553 -0
- braindecode-1.5.0/examples/advanced_training/plot_temporal_generalization.py +431 -0
- braindecode-1.5.0/examples/applied_examples/README.txt +5 -0
- braindecode-1.5.0/examples/applied_examples/bcic_iv_4_ecog_trial.py +446 -0
- braindecode-1.5.0/examples/applied_examples/plot_sleep_staging_chambon2018.py +396 -0
- braindecode-1.5.0/examples/applied_examples/plot_sleep_staging_eldele2021.py +429 -0
- braindecode-1.5.0/examples/applied_examples/plot_sleep_staging_usleep.py +357 -0
- braindecode-1.5.0/examples/applied_examples/plot_tuh_eeg_corpus.py +330 -0
- braindecode-1.5.0/examples/applied_examples/tutorial_create_fixed_window_length.py +265 -0
- braindecode-1.5.0/examples/datasets_io/README.txt +5 -0
- braindecode-1.5.0/examples/datasets_io/benchmark_lazy_eager_loading.py +401 -0
- braindecode-1.5.0/examples/datasets_io/bids_dataset_example.py +38 -0
- braindecode-1.5.0/examples/datasets_io/plot_benchmark_preprocessing.py +183 -0
- braindecode-1.5.0/examples/datasets_io/plot_custom_dataset_example.py +75 -0
- braindecode-1.5.0/examples/datasets_io/plot_hub_integration.py +350 -0
- braindecode-1.5.0/examples/datasets_io/plot_load_save_datasets.py +100 -0
- braindecode-1.5.0/examples/datasets_io/plot_mne_dataset_example.py +61 -0
- braindecode-1.5.0/examples/datasets_io/plot_moabb_dataset_example.py +68 -0
- braindecode-1.5.0/examples/datasets_io/plot_split_dataset.py +120 -0
- braindecode-1.5.0/examples/datasets_io/plot_tuh_discrete_multitarget.py +133 -0
- braindecode-1.5.0/examples/model_building/README.txt +5 -0
- braindecode-1.5.0/examples/model_building/plot_basic_training_epochs.py +197 -0
- braindecode-1.5.0/examples/model_building/plot_bcic_iv_2a_eegprep_cleaning.py +449 -0
- braindecode-1.5.0/examples/model_building/plot_bcic_iv_2a_moabb_cropped.py +425 -0
- braindecode-1.5.0/examples/model_building/plot_bcic_iv_2a_moabb_trial.py +393 -0
- braindecode-1.5.0/examples/model_building/plot_channel_interpolation.py +352 -0
- braindecode-1.5.0/examples/model_building/plot_how_train_test_and_tune.py +698 -0
- braindecode-1.5.0/examples/model_building/plot_hyperparameter_tuning_with_scikit-learn.py +388 -0
- braindecode-1.5.0/examples/model_building/plot_load_pretrained_models.py +663 -0
- braindecode-1.5.0/examples/model_building/plot_preprocessing_classes.py +215 -0
- braindecode-1.5.0/examples/model_building/plot_regression.py +276 -0
- braindecode-1.5.0/examples/model_building/plot_train_in_pure_pytorch_and_pytorch_lightning.py +423 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/pyproject.toml +4 -1
- braindecode-1.5.0/scripts/check_codebrain_weights.py +60 -0
- braindecode-1.5.0/scripts/release_script.py +132 -0
- braindecode-1.5.0/test/__init__.py +0 -0
- braindecode-1.5.0/test/acceptance_tests/__init__.py +0 -0
- braindecode-1.5.0/test/acceptance_tests/test_cropped_decoding.py +150 -0
- braindecode-1.5.0/test/acceptance_tests/test_eeg_classifier.py +272 -0
- braindecode-1.5.0/test/acceptance_tests/test_model_architectures.py +182 -0
- braindecode-1.5.0/test/acceptance_tests/test_trialwise_decoding.py +177 -0
- braindecode-1.5.0/test/acceptance_tests/test_variable_length_trials_decoding.py +113 -0
- braindecode-1.5.0/test/dataset.py +49 -0
- braindecode-1.5.0/test/integration_tests/test_pretrained_hub_models.py +348 -0
- braindecode-1.5.0/test/unit_tests/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/augmentation/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/augmentation/conftest.py +55 -0
- braindecode-1.5.0/test/unit_tests/augmentation/test_base.py +200 -0
- braindecode-1.5.0/test/unit_tests/augmentation/test_functional.py +126 -0
- braindecode-1.5.0/test/unit_tests/augmentation/test_transforms.py +791 -0
- braindecode-1.5.0/test/unit_tests/datasets/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_bbci.py +22 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_bcicomp.py +131 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_bids.py +58 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_bids_validation.py +247 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_dataset.py +1008 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_hub_integration.py +1194 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_mne.py +226 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_moabb.py +78 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_nmt.py +234 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_sleep_physionet.py +66 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_tuh.py +259 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_xy.py +35 -0
- braindecode-1.5.0/test/unit_tests/datasets/test_zarr_to_memmap_concurrency.py +221 -0
- braindecode-1.5.0/test/unit_tests/datautil/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/datautil/test_channel_utils.py +97 -0
- braindecode-1.5.0/test/unit_tests/datautil/test_hub_formats.py +263 -0
- braindecode-1.5.0/test/unit_tests/datautil/test_init.py +25 -0
- braindecode-1.5.0/test/unit_tests/datautil/test_serialization.py +418 -0
- braindecode-1.5.0/test/unit_tests/datautil/test_util.py +37 -0
- braindecode-1.5.0/test/unit_tests/models/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/models/test_base.py +534 -0
- braindecode-1.5.0/test/unit_tests/models/test_config.py +125 -0
- braindecode-1.5.0/test/unit_tests/models/test_config_numpydantic_fallback.py +27 -0
- braindecode-1.5.0/test/unit_tests/models/test_correctness.py +151 -0
- braindecode-1.5.0/test/unit_tests/models/test_foundation_models.py +1010 -0
- braindecode-1.5.0/test/unit_tests/models/test_functional.py +67 -0
- braindecode-1.5.0/test/unit_tests/models/test_huggingface.py +352 -0
- braindecode-1.5.0/test/unit_tests/models/test_integration.py +636 -0
- braindecode-1.5.0/test/unit_tests/models/test_interpolated.py +272 -0
- braindecode-1.5.0/test/unit_tests/models/test_interpolation.py +204 -0
- braindecode-1.5.0/test/unit_tests/models/test_model_categorization.py +123 -0
- braindecode-1.5.0/test/unit_tests/models/test_models.py +3521 -0
- braindecode-1.5.0/test/unit_tests/models/test_modules.py +1304 -0
- braindecode-1.5.0/test/unit_tests/models/test_return_features.py +183 -0
- braindecode-1.5.0/test/unit_tests/models/test_signal_jepa.py +521 -0
- braindecode-1.5.0/test/unit_tests/models/test_util.py +97 -0
- braindecode-1.5.0/test/unit_tests/preprocessing/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/preprocessing/test_eegprep_preprocessor.py +936 -0
- braindecode-1.5.0/test/unit_tests/preprocessing/test_mne_preprocessor.py +631 -0
- braindecode-1.5.0/test/unit_tests/preprocessing/test_preprocess.py +782 -0
- braindecode-1.5.0/test/unit_tests/preprocessing/test_util.py +465 -0
- braindecode-1.5.0/test/unit_tests/preprocessing/test_windowers.py +1604 -0
- braindecode-1.5.0/test/unit_tests/samplers/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/samplers/test_samplers.py +480 -0
- braindecode-1.5.0/test/unit_tests/test_eegneuralnet.py +545 -0
- braindecode-1.5.0/test/unit_tests/test_util.py +375 -0
- braindecode-1.5.0/test/unit_tests/training/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/training/test_losses.py +69 -0
- braindecode-1.5.0/test/unit_tests/training/test_scoring.py +532 -0
- braindecode-1.5.0/test/unit_tests/training/test_seed_reproducibility.py +49 -0
- braindecode-1.5.0/test/unit_tests/visualization/__init__.py +0 -0
- braindecode-1.5.0/test/unit_tests/visualization/conftest.py +18 -0
- braindecode-1.5.0/test/unit_tests/visualization/test_attribution.py +106 -0
- braindecode-1.5.0/test/unit_tests/visualization/test_gradients.py +38 -0
- braindecode-1.5.0/test/unit_tests/visualization/test_metrics.py +166 -0
- braindecode-1.5.0/test/unit_tests/visualization/test_topology.py +67 -0
- braindecode-1.4.0.dev981/braindecode/version.py +0 -1
- braindecode-1.4.0.dev981/braindecode/visualization/__init__.py +0 -8
- braindecode-1.4.0.dev981/braindecode/visualization/gradients.py +0 -62
- braindecode-1.4.0.dev981/braindecode.egg-info/SOURCES.txt +0 -160
- braindecode-1.4.0.dev981/docs/index.rst +0 -48
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/LICENSE.txt +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/MANIFEST.in +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/README.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/augmentation/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/augmentation/base.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/augmentation/functional.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/augmentation/transforms.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/classifier.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bbci.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bcicomp.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/datasets.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/format.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/hub.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/hub_format.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/hub_io.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/hub_validation.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/bids/iterable.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/chb_mit.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/mne.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/moabb.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/nmt.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/registry.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/siena.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/sleep_physio_challe_18.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/tuh.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/utils.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datasets/xy.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datautil/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datautil/channel_utils.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datautil/hub_formats.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datautil/serialization.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/datautil/util.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/eegneuralnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/functional/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/functional/functions.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/functional/initialization.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/atcnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/attn_sleep.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/brainmodule.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/cbramod.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/contrawr.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/ctnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/deep4.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/deepsleepnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/dgcnn.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegconformer.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eeginception_erp.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eeginception_mi.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegitnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegminer.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegnex.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegpt.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegsimpleconv.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegsym.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/eegtcnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/fbcnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/fblightconvnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/fbmsnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/hybrid.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/ifnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/luna.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/medformer.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/msvtnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/patchedtransformer.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/sccnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/shallow_fbcsp.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/sinc_shallow.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/sleep_stager_blanco_2020.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/sleep_stager_chambon_2018.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/sparcnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/sstdpn.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/tcn.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/tidnet.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/models/usleep.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/activation.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/blocks.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/convolution.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/filter.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/layers.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/linear.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/parametrization.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/stats.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/util.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/modules/wrapper.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/preprocessing/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/preprocessing/mne_preprocess.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/preprocessing/util.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/regressor.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/samplers/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/samplers/base.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/samplers/ssl.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/training/__init__.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/training/callbacks.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/training/losses.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/training/scoring.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/util.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode/visualization/confusion_matrices.py +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode.egg-info/dependency_links.txt +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/braindecode.egg-info/top_level.txt +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/Makefile +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/_templates/autosummary/class.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/_templates/autosummary/class_in_subdir.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/_templates/autosummary/function.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/_templates/autosummary/function_in_subdir.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/help.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/install/install_pip.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/install/install_source.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/attention.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/channel.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/convolution.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/filterbank.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/gnn.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/interpretable.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/lbm.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/recurrent.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/categorization/spd.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/models.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/models_categorization.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/models_table.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/models/models_visualization.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/docs/sg_execution_times.rst +0 -0
- {braindecode-1.4.0.dev981 → braindecode-1.5.0}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0/docs/_build/html/index.html
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Tagging a commit with [circle front] will build the front page and perform test-doc.
|
|
2
|
+
# Tagging a commit with [circle full] will build everything.
|
|
3
|
+
version: 2.1
|
|
4
|
+
parameters:
|
|
5
|
+
github-artifact-url:
|
|
6
|
+
type: string
|
|
7
|
+
default: "none"
|
|
8
|
+
jobs:
|
|
9
|
+
fetch_docs_from_github:
|
|
10
|
+
docker:
|
|
11
|
+
- image: circleci/python:3.9
|
|
12
|
+
environment:
|
|
13
|
+
GITHUB_ARTIFACT_URL: << pipeline.parameters.github-artifact-url >>
|
|
14
|
+
steps:
|
|
15
|
+
- run:
|
|
16
|
+
name: Download some docs
|
|
17
|
+
command: |
|
|
18
|
+
echo "Show Github artifact url"
|
|
19
|
+
echo $GITHUB_ARTIFACT_URL
|
|
20
|
+
wget -O HTML-docs.zip $GITHUB_ARTIFACT_URL
|
|
21
|
+
ls -ahl .
|
|
22
|
+
unzip HTML-docs.zip -d downloaded_docs
|
|
23
|
+
ls -ahl .
|
|
24
|
+
# Save the outputs
|
|
25
|
+
- store_artifacts:
|
|
26
|
+
path: downloaded_docs/html/
|
|
27
|
+
destination: dev
|
|
28
|
+
- persist_to_workspace:
|
|
29
|
+
root: downloaded_docs
|
|
30
|
+
paths:
|
|
31
|
+
- html
|
|
32
|
+
dummy_job:
|
|
33
|
+
docker:
|
|
34
|
+
- image: circleci/python:3.9
|
|
35
|
+
steps:
|
|
36
|
+
- run:
|
|
37
|
+
name: Dummy echo
|
|
38
|
+
command: |
|
|
39
|
+
echo "Do nothing..."
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
workflows:
|
|
43
|
+
version: 2.1
|
|
44
|
+
|
|
45
|
+
default:
|
|
46
|
+
when:
|
|
47
|
+
not:
|
|
48
|
+
equal: [ "none", << pipeline.parameters.github-artifact-url >> ]
|
|
49
|
+
jobs:
|
|
50
|
+
- fetch_docs_from_github
|
|
51
|
+
|
|
52
|
+
dummy_workflow:
|
|
53
|
+
when:
|
|
54
|
+
equal: [ "none", << pipeline.parameters.github-artifact-url >> ]
|
|
55
|
+
jobs:
|
|
56
|
+
- dummy_job
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Codacy project configuration.
|
|
3
|
+
#
|
|
4
|
+
# The defaults are sensible for most projects, but the docs landing page
|
|
5
|
+
# (`docs/_static/landing.{css,js}`) is intentionally written with
|
|
6
|
+
# compact single-line CSS rules (faster to read in a 1500-line file) and
|
|
7
|
+
# uses function declarations after their reference site (legal in JS due
|
|
8
|
+
# to hoisting). Both patterns get flagged by stylelint / ESLint default
|
|
9
|
+
# configs that Codacy ships, so we narrow those rules below.
|
|
10
|
+
engines:
|
|
11
|
+
stylelint:
|
|
12
|
+
enabled: true
|
|
13
|
+
rules:
|
|
14
|
+
# docs/_static/landing.css uses single-line rules for SVG keyframes
|
|
15
|
+
# and one-liner overrides where the visual pairing is the point.
|
|
16
|
+
declaration-block-single-line-max-declarations: false
|
|
17
|
+
# Blank-line-before-rule is a stylistic preference; the file
|
|
18
|
+
# already separates major sections with header comments.
|
|
19
|
+
rule-empty-line-before: false
|
|
20
|
+
# Allow lower-case shorthand hex; the file mixes 3- and 6-digit.
|
|
21
|
+
color-hex-length: false
|
|
22
|
+
exclude_paths:
|
|
23
|
+
- docs/_build/**
|
|
24
|
+
- docs/auto_examples/**
|
|
25
|
+
- docs/sg_execution_times.rst
|
|
26
|
+
- examples/**
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Convert Python example scripts to Jupyter notebooks for Colab integration.
|
|
3
|
+
|
|
4
|
+
This script is adapted from deepinv's conversion script and simplified for braindecode's needs.
|
|
5
|
+
It converts Sphinx-Gallery Python examples to Jupyter notebooks.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import argparse
|
|
9
|
+
import copy
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
import nbformat
|
|
13
|
+
from sphinx_gallery import gen_gallery
|
|
14
|
+
from sphinx_gallery.notebook import jupyter_notebook, save_notebook
|
|
15
|
+
from sphinx_gallery.py_source_parser import split_code_and_text_blocks
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def convert_script_to_notebook(src_file: Path, output_file: Path, gallery_conf):
|
|
19
|
+
"""
|
|
20
|
+
Convert a single Python script to a Jupyter notebook.
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
src_file : Path
|
|
25
|
+
Path to the source Python script
|
|
26
|
+
output_file : Path
|
|
27
|
+
Path where the notebook should be saved
|
|
28
|
+
gallery_conf : dict
|
|
29
|
+
Sphinx-Gallery configuration dictionary
|
|
30
|
+
"""
|
|
31
|
+
# Parse the Python file
|
|
32
|
+
file_conf, blocks = split_code_and_text_blocks(str(src_file))
|
|
33
|
+
|
|
34
|
+
# Convert to notebook (returns a dict, not a notebook object)
|
|
35
|
+
example_nb_dict = jupyter_notebook(blocks, gallery_conf, str(src_file.parent))
|
|
36
|
+
|
|
37
|
+
# Convert dict to nbformat notebook object
|
|
38
|
+
example_nb = nbformat.from_dict(example_nb_dict)
|
|
39
|
+
|
|
40
|
+
# Prepend an installation cell for braindecode
|
|
41
|
+
# Check if first cell already has pip install
|
|
42
|
+
try:
|
|
43
|
+
first_source = example_nb.cells[0].source if example_nb.cells else ""
|
|
44
|
+
except (IndexError, AttributeError):
|
|
45
|
+
first_source = ""
|
|
46
|
+
|
|
47
|
+
install_cmd = "%pip install braindecode"
|
|
48
|
+
if "pip install" not in first_source or "braindecode" not in first_source:
|
|
49
|
+
install_cell = nbformat.v4.new_code_cell(source=install_cmd)
|
|
50
|
+
install_cell.metadata["language"] = "python"
|
|
51
|
+
example_nb.cells.insert(0, install_cell)
|
|
52
|
+
|
|
53
|
+
# Ensure the parent directory exists
|
|
54
|
+
output_file.parent.mkdir(parents=True, exist_ok=True)
|
|
55
|
+
|
|
56
|
+
# Save notebook
|
|
57
|
+
save_notebook(example_nb, output_file)
|
|
58
|
+
print(f"Notebook saved to: {output_file}")
|
|
59
|
+
if __name__ == "__main__":
|
|
60
|
+
parser = argparse.ArgumentParser(
|
|
61
|
+
description="Convert Python example scripts to Jupyter notebooks."
|
|
62
|
+
)
|
|
63
|
+
parser.add_argument(
|
|
64
|
+
"--input",
|
|
65
|
+
required=True,
|
|
66
|
+
help="Path to the Python script to convert",
|
|
67
|
+
)
|
|
68
|
+
parser.add_argument(
|
|
69
|
+
"--output",
|
|
70
|
+
required=True,
|
|
71
|
+
help="Path to save the converted notebook",
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
args = parser.parse_args()
|
|
75
|
+
|
|
76
|
+
input_path = Path(args.input)
|
|
77
|
+
target_path = Path(args.output)
|
|
78
|
+
|
|
79
|
+
# Use default gallery configuration
|
|
80
|
+
gallery_conf = copy.deepcopy(gen_gallery.DEFAULT_GALLERY_CONF)
|
|
81
|
+
|
|
82
|
+
print(f"Processing: {input_path}")
|
|
83
|
+
try:
|
|
84
|
+
convert_script_to_notebook(input_path, target_path, gallery_conf)
|
|
85
|
+
print(f"Successfully converted {input_path} to {target_path}")
|
|
86
|
+
except Exception as e:
|
|
87
|
+
print(f"Error converting {input_path}: {e}")
|
|
88
|
+
raise
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
name: docs
|
|
2
|
+
concurrency:
|
|
3
|
+
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
|
|
4
|
+
cancel-in-progress: true
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- "master"
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- '*' # all branches, including forks
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build_docs:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
env:
|
|
17
|
+
HF_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
|
|
18
|
+
steps:
|
|
19
|
+
## Install Braindecode
|
|
20
|
+
- name: Checking Out Repository
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
# Install python
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.12'
|
|
26
|
+
# Cache MNE Data and HuggingFace Hub weights.
|
|
27
|
+
# Both caches are content-addressed (filenames + checksums for MNE,
|
|
28
|
+
# commit-pinned safetensors for HF), so they don't need to invalidate on
|
|
29
|
+
# pyproject.toml changes. Using github.run_id as the primary save key
|
|
30
|
+
# forces a fresh save each run; restore-keys lets every run start from
|
|
31
|
+
# the most recent cache instead of cold-downloading from physionet.org /
|
|
32
|
+
# huggingface.co.
|
|
33
|
+
- name: Create/Restore MNE Data Cache
|
|
34
|
+
id: cache-mne_data
|
|
35
|
+
uses: actions/cache@v4
|
|
36
|
+
with:
|
|
37
|
+
path: ~/mne_data
|
|
38
|
+
key: docs-mne-data-v1-${{ github.run_id }}
|
|
39
|
+
restore-keys: |
|
|
40
|
+
docs-mne-data-v1-
|
|
41
|
+
docs-mne-data-
|
|
42
|
+
- name: Create/Restore HuggingFace Cache
|
|
43
|
+
uses: actions/cache@v4
|
|
44
|
+
with:
|
|
45
|
+
path: ~/.cache/huggingface/hub
|
|
46
|
+
key: docs-hf-hub-v1-${{ github.run_id }}
|
|
47
|
+
restore-keys: |
|
|
48
|
+
docs-hf-hub-v1-
|
|
49
|
+
docs-hf-hub-
|
|
50
|
+
# Install uv
|
|
51
|
+
- name: Install uv
|
|
52
|
+
uses: astral-sh/setup-uv@v3
|
|
53
|
+
with:
|
|
54
|
+
enable-cache: true
|
|
55
|
+
cache-dependency-glob: "**/pyproject.toml"
|
|
56
|
+
# Install with all dependencies for doc build to go through
|
|
57
|
+
- name: Install with doc dependencies
|
|
58
|
+
run: uv pip install --system -e .[all]
|
|
59
|
+
# Show Braindecode Version
|
|
60
|
+
- run: python -c "import braindecode; print(braindecode.__version__)"
|
|
61
|
+
# Persist HF token to disk so sphinx-gallery examples can access gated repos
|
|
62
|
+
- name: Login to Hugging Face Hub
|
|
63
|
+
if: ${{ env.HF_TOKEN != '' }}
|
|
64
|
+
run: python -c "import os; from huggingface_hub import login; login(token=os.environ['HF_TOKEN'])"
|
|
65
|
+
- name: Create Docs
|
|
66
|
+
run: |
|
|
67
|
+
cd docs
|
|
68
|
+
make html
|
|
69
|
+
|
|
70
|
+
- name: Generate Notebooks from Examples
|
|
71
|
+
run: |
|
|
72
|
+
set -euo pipefail
|
|
73
|
+
echo "Converting Python examples to notebooks in docs/_build/html/auto_examples/_notebooks..."
|
|
74
|
+
mkdir -p docs/_build/html/auto_examples/_notebooks
|
|
75
|
+
find examples -type f -name '*.py' | while read -r f; do
|
|
76
|
+
rel="${f#examples/}"
|
|
77
|
+
out_dir="docs/_build/html/auto_examples/_notebooks/$(dirname "$rel")"
|
|
78
|
+
mkdir -p "$out_dir"
|
|
79
|
+
base="$(basename "$rel" .py)"
|
|
80
|
+
out_path="$out_dir/$base.ipynb"
|
|
81
|
+
python .github/scripts/convert_to_notebook.py --input "$f" --output "$out_path"
|
|
82
|
+
done
|
|
83
|
+
|
|
84
|
+
- name: Upload HTML Docs as Artifacts
|
|
85
|
+
uses: actions/upload-artifact@v4
|
|
86
|
+
with:
|
|
87
|
+
name: HTML-Docs
|
|
88
|
+
path: ./docs/_build/
|
|
89
|
+
|
|
90
|
+
- name: Deploy to Github Pages if on Master
|
|
91
|
+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
92
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
93
|
+
with:
|
|
94
|
+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
95
|
+
external_repository: braindecode/braindecode.github.io
|
|
96
|
+
destination_dir: dev
|
|
97
|
+
publish_branch: master
|
|
98
|
+
publish_dir: ./docs/_build/html
|
|
99
|
+
cname: braindecode.org
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: Link Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
paths:
|
|
7
|
+
- "**.md"
|
|
8
|
+
- "docs/**"
|
|
9
|
+
- ".github/workflows/link-check.yml"
|
|
10
|
+
pull_request:
|
|
11
|
+
branches: [main]
|
|
12
|
+
paths:
|
|
13
|
+
- "**.md"
|
|
14
|
+
- "docs/**"
|
|
15
|
+
- ".github/workflows/link-check.yml"
|
|
16
|
+
schedule:
|
|
17
|
+
- cron: "0 0 * * 1"
|
|
18
|
+
workflow_dispatch:
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
link-check:
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout repository
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
|
+
|
|
27
|
+
- name: Check links in Markdown and RST files
|
|
28
|
+
uses: lycheeverse/lychee-action@v2
|
|
29
|
+
with:
|
|
30
|
+
args: >-
|
|
31
|
+
--verbose
|
|
32
|
+
--no-progress
|
|
33
|
+
--accept 200,204,206,301,302,303,307,308,429
|
|
34
|
+
--timeout 30
|
|
35
|
+
--max-retries 3
|
|
36
|
+
--exclude "^mailto:"
|
|
37
|
+
--exclude "^https://github\\.com/braindecode/braindecode/(issues|pulls|compare)"
|
|
38
|
+
--exclude "^https://github\\.com/.*/(fork|new)"
|
|
39
|
+
--exclude "localhost"
|
|
40
|
+
--exclude "127\\.0\\.0\\.1"
|
|
41
|
+
--exclude "example\\.com"
|
|
42
|
+
--exclude "^file://"
|
|
43
|
+
--exclude "^git\\+"
|
|
44
|
+
--exclude "arxiv\\.org"
|
|
45
|
+
--exclude "twitter\\.com"
|
|
46
|
+
--exclude "x\\.com"
|
|
47
|
+
--exclude "linkedin\\.com"
|
|
48
|
+
--exclude "app\\.gitter\\.im"
|
|
49
|
+
--exclude "gitter\\.im"
|
|
50
|
+
--exclude "gitlab\\.com"
|
|
51
|
+
--exclude "dx\\.doi\\.org"
|
|
52
|
+
--exclude "^https://doi\\.org/10\\.1002/hbm"
|
|
53
|
+
--exclude "^https://dl\\.acm\\.org/doi"
|
|
54
|
+
"./**/*.md"
|
|
55
|
+
"./**/*.rst"
|
|
56
|
+
fail: true
|
|
57
|
+
output: ./lychee-report.md
|
|
58
|
+
|
|
59
|
+
- name: Upload link check report
|
|
60
|
+
uses: actions/upload-artifact@v4
|
|
61
|
+
if: always()
|
|
62
|
+
with:
|
|
63
|
+
name: link-check-report
|
|
64
|
+
path: ./lychee-report.md
|
|
65
|
+
retention-days: 30
|
|
66
|
+
|
|
67
|
+
- name: Create issue on link check failure
|
|
68
|
+
if: failure() && github.event_name == 'schedule'
|
|
69
|
+
uses: actions/github-script@v7
|
|
70
|
+
with:
|
|
71
|
+
script: |
|
|
72
|
+
const fs = require('fs');
|
|
73
|
+
let report = '';
|
|
74
|
+
try {
|
|
75
|
+
report = fs.readFileSync('./lychee-report.md', 'utf8');
|
|
76
|
+
} catch (e) {
|
|
77
|
+
report = 'Could not read the link check report.';
|
|
78
|
+
}
|
|
79
|
+
const issues = await github.rest.issues.listForRepo({
|
|
80
|
+
owner: context.repo.owner,
|
|
81
|
+
repo: context.repo.repo,
|
|
82
|
+
state: 'open',
|
|
83
|
+
labels: 'broken-links'
|
|
84
|
+
});
|
|
85
|
+
if (issues.data.length === 0) {
|
|
86
|
+
await github.rest.issues.create({
|
|
87
|
+
owner: context.repo.owner,
|
|
88
|
+
repo: context.repo.repo,
|
|
89
|
+
title: 'Broken links detected in documentation',
|
|
90
|
+
body: `## Automated Link Check Report\n\nThe weekly link check has detected broken links.\n\n<details>\n<summary>Report</summary>\n\n${report}\n\n</details>`,
|
|
91
|
+
labels: ['broken-links', 'documentation']
|
|
92
|
+
});
|
|
93
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
on: [status]
|
|
2
|
+
jobs:
|
|
3
|
+
circleci_artifacts_redirector:
|
|
4
|
+
runs-on: ubuntu-latest
|
|
5
|
+
name: Run CircleCI artifacts redirector
|
|
6
|
+
steps:
|
|
7
|
+
- name: GitHub Action step
|
|
8
|
+
uses: larsoner/circleci-artifacts-redirector-action@master
|
|
9
|
+
with:
|
|
10
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
11
|
+
api-token: ${{ secrets.CIRCLECI_TOKEN }}
|
|
12
|
+
artifact-path: 0/dev/index.html
|
|
13
|
+
circleci-jobs: fetch_docs_from_github
|
|
14
|
+
job-title: Check rendered doc here!
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: pre-commit-codestyle
|
|
2
|
+
concurrency:
|
|
3
|
+
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
|
|
4
|
+
cancel-in-progress: true
|
|
5
|
+
|
|
6
|
+
on: [pull_request]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
pre-commit:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
- uses: pre-commit/action@v3.0.1
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: push-artifact-to-circle-ci
|
|
2
|
+
concurrency:
|
|
3
|
+
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
|
|
4
|
+
cancel-in-progress: true
|
|
5
|
+
# will be changed to on workflow_run
|
|
6
|
+
on:
|
|
7
|
+
workflow_run:
|
|
8
|
+
workflows: ["docs"]
|
|
9
|
+
branches-ignore: ["master"]
|
|
10
|
+
types:
|
|
11
|
+
- completed
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
Push-Artifact-to-CircleCI:
|
|
15
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
defaults:
|
|
18
|
+
run:
|
|
19
|
+
shell: bash -l {0}
|
|
20
|
+
steps:
|
|
21
|
+
- name: Trigger CircleCI download and publication of HTML Doc Artifact
|
|
22
|
+
env:
|
|
23
|
+
EVENT_OBJ: ${{ toJson(github.event) }}
|
|
24
|
+
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
|
|
25
|
+
REPO_NAME: ${{ github.event.workflow_run.head_repository.full_name }}
|
|
26
|
+
CIRCLECI_TOKEN: ${{ secrets.CIRCLECI_TOKEN }}
|
|
27
|
+
RUN_ID: ${{github.event.workflow_run.id}}
|
|
28
|
+
run: |
|
|
29
|
+
echo "github.event.workflow_run.head_sha"
|
|
30
|
+
echo ${{ github.event.workflow_run.head_sha }}
|
|
31
|
+
echo "github.event.workflow_run.head_repository.html_url"
|
|
32
|
+
echo ${{ github.event.workflow_run.head_repository.html_url }}
|
|
33
|
+
echo "RUN_ID"
|
|
34
|
+
echo $RUN_ID
|
|
35
|
+
# Acquire the Pull Request Number from Github API
|
|
36
|
+
echo "automated curl"
|
|
37
|
+
PR_NUMBER=$(curl -H "Accept: application/vnd.github.groot-preview+json" https://api.github.com/repos/$REPO_NAME/commits/$COMMIT_SHA/pulls 2>/dev/null | jq '.[0].number')
|
|
38
|
+
echo "PR_NUMBER"
|
|
39
|
+
echo $PR_NUMBER
|
|
40
|
+
|
|
41
|
+
# Use Pull Request Number to trigger pipeline on CircleCI which will just download artifact,
|
|
42
|
+
# unzip it and make it available for browsing
|
|
43
|
+
curl --request POST \
|
|
44
|
+
--url https://circleci.com/api/v2/project/gh/braindecode/braindecode/pipeline \
|
|
45
|
+
--header "Circle-Token: $CIRCLECI_TOKEN" \
|
|
46
|
+
--header 'content-type: application/json' \
|
|
47
|
+
--header 'x-attribution-actor-id: github_actions' \
|
|
48
|
+
--header 'x-attribution-login: github_actions' \
|
|
49
|
+
--data \{\"branch\":\"pull/$PR_NUMBER/head\",\"parameters\":\{\"github-artifact-url\":\"https://nightly.link/braindecode/braindecode/actions/runs/$RUN_ID/HTML-Docs.zip\"\}\}
|
|
50
|
+
# Just for debugging
|
|
51
|
+
echo "EVENT_OBJ"
|
|
52
|
+
echo $EVENT_OBJ
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: Publish to PyPI on main updates
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
concurrency:
|
|
11
|
+
group: pypi-publish
|
|
12
|
+
cancel-in-progress: false
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
env:
|
|
16
|
+
PYPI_USERNAME: __token__
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out code
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.11"
|
|
28
|
+
|
|
29
|
+
- name: Install build deps
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install build packaging
|
|
33
|
+
|
|
34
|
+
# Figure out if this push is a merged PR or a direct push
|
|
35
|
+
- name: Derive version suffix (PR number if merged, else short SHA)
|
|
36
|
+
id: ver
|
|
37
|
+
shell: bash
|
|
38
|
+
run: |
|
|
39
|
+
set -euo pipefail
|
|
40
|
+
COMMIT_MSG="$(git log -1 --pretty=%B)"
|
|
41
|
+
if [[ "$COMMIT_MSG" =~ Merge\ pull\ request\ \#([0-9]+) ]]; then
|
|
42
|
+
echo "suffix=pr${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
|
|
43
|
+
echo "pr_number=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
|
|
44
|
+
echo "Detected merged PR #${BASH_REMATCH[1]}"
|
|
45
|
+
else
|
|
46
|
+
SHORT_SHA="$(git rev-parse --short HEAD)"
|
|
47
|
+
echo "suffix=sha${SHORT_SHA}" >> "$GITHUB_OUTPUT"
|
|
48
|
+
echo "Detected direct push (no PR); using ${SHORT_SHA}"
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
# Use your script, passing PR number when present, otherwise a SHA-based suffix
|
|
52
|
+
- name: Bump version
|
|
53
|
+
shell: bash
|
|
54
|
+
run: |
|
|
55
|
+
set -euo pipefail
|
|
56
|
+
if [[ -n "${{ steps.ver.outputs.pr_number || '' }}" ]]; then
|
|
57
|
+
python scripts/release_script.py \
|
|
58
|
+
--init-file braindecode/version.py \
|
|
59
|
+
--pr "${{ steps.ver.outputs.pr_number }}"
|
|
60
|
+
else
|
|
61
|
+
# Fallback path must be supported by your script; if not, change the script
|
|
62
|
+
# to accept --pr and append a compliant .devN/.postN label.
|
|
63
|
+
python scripts/release_script.py \
|
|
64
|
+
--init-file braindecode/version.py \
|
|
65
|
+
--suffix "${{ steps.ver.outputs.suffix }}"
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
- name: Build sdist and wheel
|
|
69
|
+
run: python -m build
|
|
70
|
+
|
|
71
|
+
- name: Publish to PyPI
|
|
72
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
73
|
+
with:
|
|
74
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
concurrency:
|
|
3
|
+
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
|
|
4
|
+
cancel-in-progress: true
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- "master"
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- '*' # all branches, including forks
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
|
|
20
|
+
python-version: [ "3.12", "3.13" ] # , "3.11", "3.14"]
|
|
21
|
+
steps:
|
|
22
|
+
## Install Braindecode
|
|
23
|
+
- name: Checking Out Repository
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
# Cache MNE Data
|
|
26
|
+
# The cache key includes the OS and a hash of pyproject.toml to invalidate
|
|
27
|
+
# when dependencies change. This ensures that test data is fresh when
|
|
28
|
+
# the test configuration changes.
|
|
29
|
+
- name: Create/Restore MNE Data Cache
|
|
30
|
+
id: cache-mne_data
|
|
31
|
+
uses: actions/cache@v3
|
|
32
|
+
with:
|
|
33
|
+
path: ~/mne_data
|
|
34
|
+
key: test-2-${{ runner.os }}-${{ matrix.python-version }}
|
|
35
|
+
restore-keys: |
|
|
36
|
+
test-2-${{ runner.os }}-${{ matrix.python-version }}-
|
|
37
|
+
test-2-${{ runner.os }}-
|
|
38
|
+
- uses: actions/setup-python@v4
|
|
39
|
+
with:
|
|
40
|
+
python-version: ${{ matrix.python-version }}
|
|
41
|
+
- name: Install uv
|
|
42
|
+
uses: astral-sh/setup-uv@v3
|
|
43
|
+
with:
|
|
44
|
+
enable-cache: true
|
|
45
|
+
cache-dependency-glob: "**/pyproject.toml"
|
|
46
|
+
|
|
47
|
+
- name: Show Python Version
|
|
48
|
+
run: python --version
|
|
49
|
+
- name: Install Braindecode from Current Checkout
|
|
50
|
+
run: uv pip install --system -e .[all]
|
|
51
|
+
# Show Braindecode Version
|
|
52
|
+
- run: python -c "import braindecode; print(braindecode.__version__)"
|
|
53
|
+
|
|
54
|
+
## Run Tests
|
|
55
|
+
- name: Run Tests # See https://stackoverflow.com/a/59959080/1469195 for the cov-report logic
|
|
56
|
+
env:
|
|
57
|
+
HF_TOKEN_REVE: ${{ secrets.HF_TOKEN_REVE }}
|
|
58
|
+
run: pytest --cov=braindecode test/ --cov-report term --cov-report xml:coverage.xml
|
|
59
|
+
- name: Upload Coverage to Codecov
|
|
60
|
+
uses: codecov/codecov-action@v4
|
|
61
|
+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'}}
|
|
62
|
+
with:
|
|
63
|
+
fail_ci_if_error: true
|
|
64
|
+
file: ./coverage.xml
|
|
65
|
+
env_vars: OS,PYTHON
|
|
66
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Check Whats News Changes
|
|
2
|
+
concurrency:
|
|
3
|
+
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
|
|
4
|
+
cancel-in-progress: true
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
types: [ assigned, opened, synchronize, reopened, labeled, unlabeled ]
|
|
8
|
+
branches:
|
|
9
|
+
- '*'
|
|
10
|
+
jobs:
|
|
11
|
+
check-whats-news:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: tarides/changelog-check-action@v3
|
|
15
|
+
with:
|
|
16
|
+
changelog: docs/whats_new.rst
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
junit-results.xml
|
|
2
|
+
*.pyc
|
|
3
|
+
*.pyo
|
|
4
|
+
*.sh
|
|
5
|
+
*.so
|
|
6
|
+
*.tar.gz
|
|
7
|
+
*.log
|
|
8
|
+
*~
|
|
9
|
+
.#*
|
|
10
|
+
*.swp
|
|
11
|
+
*.lprof
|
|
12
|
+
*.npy
|
|
13
|
+
*.zip
|
|
14
|
+
*.tar.*
|
|
15
|
+
*.egg*
|
|
16
|
+
*.tmproj
|
|
17
|
+
*.png
|
|
18
|
+
!docs/_static/*.png
|
|
19
|
+
!docs/_static/**/*.png
|
|
20
|
+
*.dat
|
|
21
|
+
.DS_Store
|
|
22
|
+
auto_examples
|
|
23
|
+
build
|
|
24
|
+
coverage
|
|
25
|
+
.cache/
|
|
26
|
+
.pytest_cache/
|
|
27
|
+
__pycache__/
|
|
28
|
+
prof/
|
|
29
|
+
.ipynb_checkpoints
|
|
30
|
+
*.pt
|
|
31
|
+
|
|
32
|
+
dist/
|
|
33
|
+
docs/_build/
|
|
34
|
+
docs/generated/
|
|
35
|
+
docs/auto_examples/
|
|
36
|
+
docs/auto_tutorials/
|
|
37
|
+
docs/modules/generated/
|
|
38
|
+
docs/sphinxext/cachedir
|
|
39
|
+
docs/source
|
|
40
|
+
pip-log.txt
|
|
41
|
+
.coverage*
|
|
42
|
+
tags
|
|
43
|
+
doc/coverages
|
|
44
|
+
doc/samples
|
|
45
|
+
cover
|
|
46
|
+
*.html
|
|
47
|
+
!docs/_templates/*.html
|
|
48
|
+
!docs/_templates/**/*.html
|
|
49
|
+
|
|
50
|
+
*.orig
|
|
51
|
+
|
|
52
|
+
# PyCharm
|
|
53
|
+
.idea/**
|
|
54
|
+
|
|
55
|
+
# sublime
|
|
56
|
+
*-e
|
|
57
|
+
|
|
58
|
+
# Visual Studio Code
|
|
59
|
+
.vscode
|
|
60
|
+
*.code-workspace
|
|
61
|
+
|
|
62
|
+
# Emacs
|
|
63
|
+
*.py#
|
|
64
|
+
*.rst#
|
|
65
|
+
|
|
66
|
+
.venv/
|
|
67
|
+
venv/
|
|
68
|
+
*.json
|
|
69
|
+
examples/model_building/lightning_logs/*
|
|
70
|
+
|
|
71
|
+
thesis/
|
|
72
|
+
|
|
73
|
+
# zoo-data.js is auto-generated into the build outdir by docs/sphinxext/zoo_data_gen.py
|
|
74
|
+
docs/_static/zoo-data.js
|