{"id":18942007,"url":"https://github.com/lucidfrontier45/optuna-async-helper","last_synced_at":"2026-02-13T15:02:37.696Z","repository":{"id":222429933,"uuid":"757155788","full_name":"lucidfrontier45/optuna-async-helper","owner":"lucidfrontier45","description":"A Helper Library to run asynchronous optimization with Optuna","archived":false,"fork":false,"pushed_at":"2025-02-04T01:55:51.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-25T03:59:40.620Z","etag":null,"topics":["blackbox-optimization","hyperparameter-tuning","machinelearning","optuna"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucidfrontier45.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-13T22:55:10.000Z","updated_at":"2025-02-04T01:55:43.000Z","dependencies_parsed_at":"2024-06-22T04:56:30.466Z","dependency_job_id":"3a495bf5-0535-44f1-9b47-7112ec73bb6e","html_url":"https://github.com/lucidfrontier45/optuna-async-helper","commit_stats":null,"previous_names":["lucidfrontier45/optuna-async-helper"],"tags_count":10,"template":false,"template_full_name":"lucidfrontier45/python-pdm-template","purl":"pkg:github/lucidfrontier45/optuna-async-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidfrontier45%2Foptuna-async-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidfrontier45%2Foptuna-async-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidfrontier45%2Foptuna-async-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidfrontier45%2Foptuna-async-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucidfrontier45","download_url":"https://codeload.github.com/lucidfrontier45/optuna-async-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidfrontier45%2Foptuna-async-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29411138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blackbox-optimization","hyperparameter-tuning","machinelearning","optuna"],"created_at":"2024-11-08T12:30:48.490Z","updated_at":"2026-02-13T15:02:37.669Z","avatar_url":"https://github.com/lucidfrontier45.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Optuna Async Helper\nA Helper Library for Optuna Async Optimization\n\n# Install\n\n```bash\npip install optuna-async-helper\n```\n\n# Usage\n\n```python\nimport tempfile\n\nfrom optuna_async_helper import (\n    SearchSpace,\n    SearchSpec,\n    optimize,\n    create_journal_storage,\n    create_study,\n)\n\n\ndef rosenbrock(x: float, y: float, z: float) -\u003e float:\n    return (z - x) ** 2 + 100 * (y - x**2) ** 2\n\n\ndef test_optimizer():\n    search_space: SearchSpace = [\n        SearchSpec(var_name=\"x\", domain_type=\"float\", low=-5, high=5),\n        SearchSpec(var_name=\"y\", domain_type=\"float\", low=-5, high=5),\n    ]\n    z = 0.5\n    initial_params = [\n        {\"x\": 0, \"y\": 0},\n        {\"x\": 1.0, \"y\": 0},\n        {\"x\": 0, \"y\": 1.0},\n    ]\n\n    with tempfile.TemporaryDirectory() as tempdir:\n        storage = create_journal_storage(f\"{tempdir}/example.db\")\n        study = create_study(\n            study_name=\"rosenbrock\",\n            storage=storage,\n        )\n        study = optimize(\n            study,\n            objective_func=rosenbrock,\n            search_space=search_space,\n            initial_params=initial_params,\n            n_trials=10,\n            batch_size=32,\n            z=z,\n        )\n\n        assert study.best_value \u003c 1.0\n        assert abs(study.best_params[\"x\"] - z) \u003c 1.0\n        assert abs(study.best_params[\"y\"] - z) \u003c 1.0\n```\n\nFor more detail, please check `optimize` and `SearchSpec` definitions.\n\n# Development\n\nThe project is managed by [uv](https://docs.astral.sh/uv/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucidfrontier45%2Foptuna-async-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucidfrontier45%2Foptuna-async-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucidfrontier45%2Foptuna-async-helper/lists"}