From ea768d41304eaa141accb70e1a2f005f6013bec2 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen Date: Mon, 11 Nov 2024 10:57:28 +0000 Subject: [PATCH 1/7] adding easyconfigs: Optuna-4.0.0-foss-2024a.eb --- .../o/Optuna/Optuna-4.0.0-foss-2024a.eb | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb new file mode 100644 index 00000000000..9eb3aab5255 --- /dev/null +++ b/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb @@ -0,0 +1,50 @@ +easyblock = 'PythonBundle' + +name = 'Optuna' +version = '4.0.0' + +homepage = "https://optuna.org/" +description = """Optuna is an automatic hyperparameter optimization software framework, +particularly designed for machine learning. It features an imperative, +define-by-run style user API. Thanks to our define-by-run API, the code written +with Optuna enjoys high modularity, and the user of Optuna can dynamically +construct the search spaces for the hyperparameters.""" + + +toolchain = {'name': 'foss', 'version': '2024a'} + +dependencies = [ + ('Python', '3.12.3'), + ('PyYAML', '6.0.2'), + ('SciPy-bundle', '2024.05'), + ('tqdm', '4.66.5'), + ('matplotlib', '3.9.2'), # optional + ('plotly.py', '5.24.1'), # optional + ('redis-py', '5.1.1'), # optional + ('scikit-learn', '1.5.2'), # optional + ('SQLAlchemy', '2.0.36'), +] + +use_pip = True +sanity_pip_check = True + +exts_list = [ + ('cmaes', '0.11.1', { + 'checksums': ['cf71fa3679814723be771f2c9edd85f465b1bc1e409e1ad6d8a9e481efcd5160'], + }), + ('colorlog', '6.9.0', { + 'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'], + }), + ('optuna', version, { + 'use_pip_extras': 'optional', + 'checksums': ['844949f09e2a7353ab414e9cfd783cf0a647a65fc32a7236212ed6a37fe08973'], + }), +] + +sanity_check_paths = { + 'files': ['bin/optuna'], + 'dirs': ['lib/python%(pyshortver)s/site-packages'], +} +sanity_check_commands = [('optuna', '--help')] + +moduleclass = 'tools' From 44f88b234b5e4091190c66a67ecb8cf0ef0aa167 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen Date: Mon, 11 Nov 2024 11:28:30 +0000 Subject: [PATCH 2/7] templated optuna python package name --- easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb index 9eb3aab5255..f85fda01479 100644 --- a/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb +++ b/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb @@ -35,7 +35,7 @@ exts_list = [ ('colorlog', '6.9.0', { 'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'], }), - ('optuna', version, { + ('%(namelower)s', version, { 'use_pip_extras': 'optional', 'checksums': ['844949f09e2a7353ab414e9cfd783cf0a647a65fc32a7236212ed6a37fe08973'], }), From 65424b645abb47de445780849e685d7accac1145 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen Date: Tue, 3 Dec 2024 13:11:08 +0000 Subject: [PATCH 3/7] minor suggestions applied --- .../o/Optuna/Optuna-4.1.0-foss-2024a.eb | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb new file mode 100644 index 00000000000..7fd4f38dd54 --- /dev/null +++ b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb @@ -0,0 +1,50 @@ +easyblock = 'PythonBundle' + +name = 'Optuna' +version = '4.1.0' + +homepage = "https://optuna.org/" +description = """Optuna is an automatic hyperparameter optimization software framework, +particularly designed for machine learning. It features an imperative, +define-by-run style user API. Thanks to our define-by-run API, the code written +with Optuna enjoys high modularity, and the user of Optuna can dynamically +construct the search spaces for the hyperparameters.""" + + +toolchain = {'name': 'foss', 'version': '2024a'} + +dependencies = [ + ('Python', '3.12.3'), + ('PyYAML', '6.0.2'), + ('SciPy-bundle', '2024.05'), + ('tqdm', '4.66.5'), + ('SQLAlchemy', '2.0.36'), + ('matplotlib', '3.9.2'), # optional + ('plotly.py', '5.24.1'), # optional + ('redis-py', '5.1.1'), # optional + ('scikit-learn', '1.5.2'), # optional +] + +use_pip = True +sanity_pip_check = True + +exts_list = [ + ('cmaes', '0.11.1', { # optional + 'checksums': ['cf71fa3679814723be771f2c9edd85f465b1bc1e409e1ad6d8a9e481efcd5160'], + }), + ('colorlog', '6.9.0', { + 'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'], + }), + ('%(namelower)s', version, { + 'use_pip_extras': 'optional', + 'checksums': ['844949f09e2a7353ab414e9cfd783cf0a647a65fc32a7236212ed6a37fe08973'], + }), +] + +sanity_check_paths = { + 'files': ['bin/optuna'], + 'dirs': ['lib/python%(pyshortver)s/site-packages'], +} +sanity_check_commands = [('optuna', '--help')] + +moduleclass = 'tools' From cf12fe4cff35319914a1042092113f559f9456e2 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen <55690238+lcniel@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:12:06 +0100 Subject: [PATCH 4/7] Delete easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb --- .../o/Optuna/Optuna-4.0.0-foss-2024a.eb | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb deleted file mode 100644 index f85fda01479..00000000000 --- a/easybuild/easyconfigs/o/Optuna/Optuna-4.0.0-foss-2024a.eb +++ /dev/null @@ -1,50 +0,0 @@ -easyblock = 'PythonBundle' - -name = 'Optuna' -version = '4.0.0' - -homepage = "https://optuna.org/" -description = """Optuna is an automatic hyperparameter optimization software framework, -particularly designed for machine learning. It features an imperative, -define-by-run style user API. Thanks to our define-by-run API, the code written -with Optuna enjoys high modularity, and the user of Optuna can dynamically -construct the search spaces for the hyperparameters.""" - - -toolchain = {'name': 'foss', 'version': '2024a'} - -dependencies = [ - ('Python', '3.12.3'), - ('PyYAML', '6.0.2'), - ('SciPy-bundle', '2024.05'), - ('tqdm', '4.66.5'), - ('matplotlib', '3.9.2'), # optional - ('plotly.py', '5.24.1'), # optional - ('redis-py', '5.1.1'), # optional - ('scikit-learn', '1.5.2'), # optional - ('SQLAlchemy', '2.0.36'), -] - -use_pip = True -sanity_pip_check = True - -exts_list = [ - ('cmaes', '0.11.1', { - 'checksums': ['cf71fa3679814723be771f2c9edd85f465b1bc1e409e1ad6d8a9e481efcd5160'], - }), - ('colorlog', '6.9.0', { - 'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'], - }), - ('%(namelower)s', version, { - 'use_pip_extras': 'optional', - 'checksums': ['844949f09e2a7353ab414e9cfd783cf0a647a65fc32a7236212ed6a37fe08973'], - }), -] - -sanity_check_paths = { - 'files': ['bin/optuna'], - 'dirs': ['lib/python%(pyshortver)s/site-packages'], -} -sanity_check_commands = [('optuna', '--help')] - -moduleclass = 'tools' From bcf1b4a7e8f7bcc35883bbe73d803f4d7eaea317 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen Date: Tue, 3 Dec 2024 13:17:54 +0000 Subject: [PATCH 5/7] fix hashes --- easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb index 7fd4f38dd54..283ec0fa9dc 100644 --- a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb +++ b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb @@ -29,15 +29,15 @@ use_pip = True sanity_pip_check = True exts_list = [ - ('cmaes', '0.11.1', { # optional + ('cmaes', '0.11.1', { 'checksums': ['cf71fa3679814723be771f2c9edd85f465b1bc1e409e1ad6d8a9e481efcd5160'], }), ('colorlog', '6.9.0', { 'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'], }), - ('%(namelower)s', version, { + ('optuna', version, { 'use_pip_extras': 'optional', - 'checksums': ['844949f09e2a7353ab414e9cfd783cf0a647a65fc32a7236212ed6a37fe08973'], + 'checksums': ['b364e87a2038f9946c5e2770c130597538aac528b4a82c1cab5267f337ea7679'], }), ] From 806691f0b20469fb4f2d83fb4e3731bc3f26defe Mon Sep 17 00:00:00 2001 From: Leonard Nielsen <55690238+lcniel@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:22:52 +0100 Subject: [PATCH 6/7] Update Optuna-4.1.0-foss-2024a.eb add optional back, got eaten by inject checksums --- easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb | 1 + 1 file changed, 1 insertion(+) diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb index 283ec0fa9dc..2a324cfcc5a 100644 --- a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb +++ b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb @@ -29,6 +29,7 @@ use_pip = True sanity_pip_check = True exts_list = [ + # optional ('cmaes', '0.11.1', { 'checksums': ['cf71fa3679814723be771f2c9edd85f465b1bc1e409e1ad6d8a9e481efcd5160'], }), From 111f4ea06df36cc89d65f43008cc9c7e3e7e0148 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen <55690238+lcniel@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:12:43 +0100 Subject: [PATCH 7/7] some small fixes --- easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb index 2a324cfcc5a..cbc97bccf09 100644 --- a/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb +++ b/easybuild/easyconfigs/o/Optuna/Optuna-4.1.0-foss-2024a.eb @@ -29,15 +29,13 @@ use_pip = True sanity_pip_check = True exts_list = [ - # optional - ('cmaes', '0.11.1', { + ('cmaes', '0.11.1', { # optional 'checksums': ['cf71fa3679814723be771f2c9edd85f465b1bc1e409e1ad6d8a9e481efcd5160'], }), ('colorlog', '6.9.0', { 'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'], }), - ('optuna', version, { - 'use_pip_extras': 'optional', + ('%(namelower)s', version, { 'checksums': ['b364e87a2038f9946c5e2770c130597538aac528b4a82c1cab5267f337ea7679'], }), ]