{"id":18300470,"url":"https://github.com/comet-ml/ray-tune-example","last_synced_at":"2025-04-09T09:29:34.664Z","repository":{"id":42471252,"uuid":"464465655","full_name":"comet-ml/ray-tune-example","owner":"comet-ml","description":"Example for using Ray Tune's Comet Integration ","archived":false,"fork":false,"pushed_at":"2022-04-04T10:40:42.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-03T02:54:46.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comet-ml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-28T12:03:36.000Z","updated_at":"2023-06-26T13:49:10.000Z","dependencies_parsed_at":"2022-09-14T00:51:48.144Z","dependency_job_id":null,"html_url":"https://github.com/comet-ml/ray-tune-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fray-tune-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fray-tune-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fray-tune-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fray-tune-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comet-ml","download_url":"https://codeload.github.com/comet-ml/ray-tune-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248011976,"owners_count":21033106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-05T15:12:33.420Z","updated_at":"2025-04-09T09:29:34.646Z","avatar_url":"https://github.com/comet-ml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n\nTo enable Comet Logging for this example, we will have to install Ray from Source.\n\n## 1. Create a Virtual Environment\n\nWe will use `conda` to create our virtual environment, but feel free to use your preferred method for creating Python virtual environments.\n\n```\nconda create -n comet-ray-tune python=3.8\nconda activate comet-ray-tune\n```\n\n## 2. Run the Setup Helper Script\nThe helper script, `setup.sh` will install Ray in the virtual environment\n\n```\nchmod +x setup.sh \u0026\u0026 ./setup.sh\n```\n\n# Set your Comet Credentials\n\nIn order to run the example, you will need to set the following Comet credentials using environment variables.\n\n```\nexport COMET_API_KEY=\u003cYour Comet API Key\u003e\nexport COMET_WORKSPACE=\u003cYour Comet Workspace\u003e\nexport COMET_PROJECT_NAME=\u003cYour Comet Project Name\u003e\n```\n\n# Run the Example\n\nThe following command will run a hyperparameter sweep using `tune` on the MNIST dataset, and log metrics, hyperparameters, and checkpoints to Comet.\n\nEach Ray `trial_id` will be logged as an individual experiment in Comet.\n\n## Example using the `CometLoggerCallback`\n```\npython tune_comet_callback.py\n```\n\n## Example using the Ray Functional API\n```\npython tune_comet_functional.py\n```\n\n## Example using the Ray Trainable Class API\n```\npython tune_comet_trainable.py\n```\n\n# Example Tune Run in Comet\n\nHere is an example project with a completed `tune` sweep\n\n[Ray Tune Example Project](https://www.comet.ml/team-comet-ml/ray-tune-example/view/D2AbZI0Rh9ZdXFV5VbqwW0vCC/experiments)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomet-ml%2Fray-tune-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomet-ml%2Fray-tune-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomet-ml%2Fray-tune-example/lists"}