From ea768d41304eaa141accb70e1a2f005f6013bec2 Mon Sep 17 00:00:00 2001 From: Leonard Nielsen Date: Mon, 11 Nov 2024 10:57:28 +0000 Subject: [PATCH 1/2] 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 000000000000..9eb3aab52554 --- /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/2] 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 9eb3aab52554..f85fda01479f 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'], }),