Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated deep learning #666

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6fddf25
MNT: fixing the numpy 2.0
bruAristimunha Oct 18, 2024
8d10215
DOC: fixing the docstring
bruAristimunha Oct 18, 2024
83add19
DOC: fixing the docstring
bruAristimunha Oct 18, 2024
06c0b97
DOC: fixing more numpy
bruAristimunha Oct 18, 2024
cd992dc
DOC: deprecated braindecode inside moabb module in favor of braindecode
bruAristimunha Oct 18, 2024
dd25e85
DOC: updating whats_new.rst file
bruAristimunha Oct 18, 2024
54db463
DOC: fixing whats_new.rst
bruAristimunha Oct 18, 2024
1c7a100
Merge branch 'fixing_numpy' into deprecated-deep-learning
bruAristimunha Oct 18, 2024
33ca7f4
DOC: fixing api doc rst
bruAristimunha Oct 18, 2024
0befa98
Merge branch 'develop' into deprecated-deep-learning
bruAristimunha Oct 18, 2024
ff077dc
DOC: removing braindecode
bruAristimunha Oct 18, 2024
ce7d57c
Merge remote-tracking branch 'origin/deprecated-deep-learning' into d…
bruAristimunha Oct 18, 2024
d473045
Merge branch 'develop' into deprecated-deep-learning
bruAristimunha Oct 18, 2024
fdd2ccd
DOC: removing braindecode
bruAristimunha Oct 18, 2024
07f0aae
[FIX] removing optional poetry dependancy.
bruAristimunha Nov 11, 2024
f76ee73
[FIX] removing options about braindecode
bruAristimunha Nov 11, 2024
942c1d6
[FIX] removing options about braindecode
bruAristimunha Nov 11, 2024
9ce2756
[FIX] removing braindecode
bruAristimunha Nov 11, 2024
4095212
[FIX] removing braindecode
bruAristimunha Nov 11, 2024
88395be
Merge branch 'develop' into deprecated-deep-learning
bruAristimunha Nov 11, 2024
2dd4e8b
Merge branch 'develop' into deprecated-deep-learning
bruAristimunha Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/source/pipelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ Base & Utils
utils_deep_model.EEGNet
utils_deep_model.EEGNet_TC
utils_deep_model.TCN_block
utils_pytorch.BraindecodeDatasetLoader
utils_pytorch.InputShapeSetterEEG
1 change: 1 addition & 0 deletions docs/source/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Bugs

API changes
~~~~~~~~~~~
- Removing the braindecode module from inside moabb (:gh:`666` by `Bruno Aristimunha`_ )

Version - 1.1.1 (Stable - PyPi)
---------------------------------
Expand Down
24 changes: 0 additions & 24 deletions moabb/pipelines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@ def __getattr__(name):
"EEGNet",
"TCN_block",
}
utils_pytorch_classes = {
"InputShapeSetterEEG",
"BraindecodeDatasetLoader",
"get_shape_from_baseconcat",
}

if name in deep_learning_classes and _check_if_tensorflow_installed():
return _import_class(name, ".deep_learning")
elif name in utils_deep_model_classes and _check_if_tensorflow_installed():
return _import_class(name, ".utils_deep_model")
elif name in utils_pytorch_classes and _check_if_braindecode_installed():
return _import_class(name, ".utils_pytorch")

raise AttributeError(f"Module '{__name__}' has no attribute '{name}'")

Expand Down Expand Up @@ -77,20 +70,3 @@ def _check_if_tensorflow_installed():
"\033[0m", # This resets the color back to normal
)
return False


def _check_if_braindecode_installed():
try:
import braindecode

return True
except ModuleNotFoundError:
warn(
"Braindecode is not installed. "
"You won't be able to use these braindecode functions if you "
"attempt to do so. \n"
"\033[94m" # This is the ANSI escape code for blue
"pip install braindecode"
"\033[0m", # This resets the color back to normal
)
return False
171 changes: 0 additions & 171 deletions moabb/pipelines/utils_pytorch.py

This file was deleted.

Loading
Loading