{"id":37154543,"url":"https://github.com/c-bata/goptuna-bayesopt","last_synced_at":"2026-01-14T18:14:53.978Z","repository":{"id":57563839,"uuid":"246371055","full_name":"c-bata/goptuna-bayesopt","owner":"c-bata","description":"Goptuna sampler for Gaussian Process based bayesian optimization using d4l3k/go-bayesopt.","archived":true,"fork":false,"pushed_at":"2020-07-29T22:38:49.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T17:38:47.603Z","etag":null,"topics":["bayesian-optimization","gaussian-processes"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/c-bata/goptuna-bayesopt","language":"Go","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/c-bata.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}},"created_at":"2020-03-10T17:57:01.000Z","updated_at":"2023-01-27T23:33:22.000Z","dependencies_parsed_at":"2022-09-16T13:34:21.795Z","dependency_job_id":null,"html_url":"https://github.com/c-bata/goptuna-bayesopt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c-bata/goptuna-bayesopt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fgoptuna-bayesopt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fgoptuna-bayesopt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fgoptuna-bayesopt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fgoptuna-bayesopt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-bata","download_url":"https://codeload.github.com/c-bata/goptuna-bayesopt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fgoptuna-bayesopt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"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":["bayesian-optimization","gaussian-processes"],"created_at":"2026-01-14T18:14:53.363Z","updated_at":"2026-01-14T18:14:53.973Z","avatar_url":"https://github.com/c-bata.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goptuna-bayesopt\n\n[Goptuna](https://github.com/c-bata/goptuna) sampler for Gaussian Process based bayesian optimization using [d4l3k/go-bayesopt](https://github.com/d4l3k/go-bayesopt/).\nThis integration supports `SuggestUniform` API only.\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"math\"\n\n\t\"github.com/c-bata/goptuna\"\n\tbayesopt \"github.com/c-bata/goptuna-bayesopt\"\n)\n\nfunc objective(trial goptuna.Trial) (float64, error) {\n\tx1, _ := trial.SuggestUniform(\"x1\", -10, 10)\n\tx2, _ := trial.SuggestUniform(\"x2\", -10, 10)\n\treturn math.Pow(x1-2, 2) + math.Pow(x2+5, 2), nil\n}\n\nfunc main() {\n\trelativeSampler := bayesopt.NewSampler()\n\tstudy, err := goptuna.CreateStudy(\n\t\t\"goptuna-example\",\n\t\tgoptuna.StudyOptionRelativeSampler(relativeSampler),\n\t)\n\tif err != nil {\n\t\tlog.Fatal(\"failed to create study:\", err)\n\t}\n\n\tif err = study.Optimize(objective, 50); err != nil {\n\t\tlog.Fatal(\"failed to optimize:\", err)\n\t}\n\n\tv, _ := study.GetBestValue()\n\tparams, _ := study.GetBestParams()\n\tlog.Printf(\"Best evaluation=%f (x1=%f, x2=%f)\",\n\t\tv, params[\"x1\"].(float64), params[\"x2\"].(float64))\n}\n```\n\n## License\n\nThis software is licensed under the MIT license, see [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fgoptuna-bayesopt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-bata%2Fgoptuna-bayesopt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fgoptuna-bayesopt/lists"}