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

Optuna GridSearch #630

Merged
merged 31 commits into from
Jul 15, 2024
Merged

Optuna GridSearch #630

merged 31 commits into from
Jul 15, 2024

Conversation

carraraig
Copy link
Collaborator

Add the possibility of using Randomized Grid Search with Optuna

@bruAristimunha
Copy link
Collaborator

Shallow first comment: can you make tests @carraraig?

moabb/evaluations/utils.py Outdated Show resolved Hide resolved
moabb/evaluations/base.py Outdated Show resolved Hide resolved
moabb/evaluations/base.py Outdated Show resolved Hide resolved
@bruAristimunha bruAristimunha enabled auto-merge (squash) July 15, 2024 08:40
@bruAristimunha bruAristimunha enabled auto-merge (squash) July 15, 2024 09:39
@bruAristimunha bruAristimunha merged commit a840f7d into NeuroTechX:develop Jul 15, 2024
11 checks passed
bruAristimunha added a commit that referenced this pull request Sep 17, 2024
* Fix workflow cache (#632)

* Copy workflow changes from PR #584

* Update whats_new.rst

* Remove "always deploy" used for testing

* Restore change to pytest instead of unittest

* Use mne data cache in tests too

* Remove duplicate restore cache (#634)

* Fix example Hinss2021 (#636)

* Dataset summary in CSV and leaderboard links (#635)

* Add summary tables as csv

* Change BaseDataset to include the dataset's summary table in the docstring

* Try update summary table in doc

* Add test for dataset summary table

* Fix future annotations

* Prepare summary tables before doc

* Make build dir if not exist

* Add rstate table

* Replace tables with CSVs in doc

* Add PapersWithCOde column

* Fix initial white space

* Fix formatting of ints

* Remove tables from docstrings

* Add missing DemonsP300 row

* Update whats_new.rst

* Remove Shin2017B leaderboard

* Move PWC link outside of docstring table

* Add Liu2024 Dataset (#619)

* including Liu2024 Dataset

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Function data_path

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* data_infos and get_single_subject_data functions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Data Description

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* updating get_single_subject fct and data_path & adding encoding fct

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Finishing the code

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* updating docstrings for data_path

* Updating dataset_summary and updating the get_single_subject fct to handle the case of existing file in path_electrodes

* adapting the return of get_single_subject_data fct

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Adding dataset description and preload = True when reading the data in the get_single_subject fct

* fix: codespell

* fix: changing to static method the encoding

* repushing and resolving pre-commit conflicts

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* fix: changing the mapping

* fix: changing the unmatching between the trigger and the events from the csv

* ehn: using pylint to improve the code (remove not used variables, and change the module);

* modifying the python version in the pre-commit file

* adding description to enhancements

* adjusting the encoding

* adjusting comments and dataset description

* solving channels types and names issues & correcting encoding

* Correcting the number of trials per class and the total trials

* Correcting data description

* Adding the possibility to exclude/include break and instructions events

* Correcting code to include/exclude instr and break events

* Remove table from docstring

Signed-off-by: PierreGtch <[email protected]>

* Add CSV row

---------

Signed-off-by: PierreGtch <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: bruAristimunha <[email protected]>
Co-authored-by: PierreGtch <[email protected]>
Co-authored-by: Pierre Guetschel <[email protected]>

* Add scripts to publish results on PaperWithCode (#561)

* Add scripts to publish results on paperwithcode

* Create tasks manually instead (API error 403 forbidden)

* Try to create the evaluation first and other things, not working...

* Update whats_new.rst

* Fix example from API's README; still results in a "403 Forbidden"

* Fix task_id

* Allow passing multiple results files

* Save commands used as comments

* Add comment

---------

Signed-off-by: PierreGtch <[email protected]>
Signed-off-by: Bru <[email protected]>
Co-authored-by: Bru <[email protected]>

* [pre-commit.ci] pre-commit autoupdate (#631)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 24.3.0 → 24.4.2](psf/black@24.3.0...24.4.2)
- [github.com/asottile/blacken-docs: 1.16.0 → 1.18.0](adamchainz/blacken-docs@1.16.0...1.18.0)
- [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](PyCQA/flake8@7.0.0...7.1.0)
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.5.0](astral-sh/ruff-pre-commit@v0.3.5...v0.5.0)
- [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](codespell-project/codespell@v2.2.6...v2.3.0)

* FIX: including new word

* including

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bru <[email protected]>

* Optuna GridSearch (#630)

* Optuna

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Optuna - Categorical Distibution

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Add optuna to dependency and regenerate poetry

* Add optuna to dependency and regenerate poetry

* Add optuna to dependency and regenerate poetry

* Add test on within Session

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Add test on within Session

* Add test on within Session

* ehn: common function with dict

* ehn: moving function to util

* fix: correcting the what news file.

* Add test benchmark and raise an issue if the conversion didn't worked and exposed time_out parameter

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* FIX: italian to eng

* EHN: making optuna optional

* FIX: fixing the workflow files

* FIX: changing the optuna file

* FIX: including optuna for the windows

---------

Signed-off-by: Bru <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: bruAristimunha <[email protected]>

* correct name (#642)

* V1.1.1 (#644)

* release 1.1.1

* increase the version

* increase the version

* removing the poetry.lock

* increase version

* changing the CITATION.cff

* upload versino for artifact

* pylock -> pyproject.toml

---------

Signed-off-by: PierreGtch <[email protected]>
Signed-off-by: Bru <[email protected]>
Co-authored-by: PierreGtch <[email protected]>
Co-authored-by: Taha Habib <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pierre Guetschel <[email protected]>
Co-authored-by: Igor Carrara <[email protected]>
Co-authored-by: Quentin Barthélemy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants