{"id":29276822,"url":"https://github.com/codecuttech/hydra-demo","last_synced_at":"2025-07-05T09:04:57.317Z","repository":{"id":169582953,"uuid":"644585742","full_name":"CodeCutTech/hydra-demo","owner":"CodeCutTech","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-17T20:50:52.000Z","size":955,"stargazers_count":31,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T05:35:53.028Z","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/CodeCutTech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-23T20:41:55.000Z","updated_at":"2025-05-18T14:27:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e5b597f-9679-4820-91d0-1a634eccccc1","html_url":"https://github.com/CodeCutTech/hydra-demo","commit_stats":null,"previous_names":["khuyentran1401/hydra-demo","codecuttech/hydra-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeCutTech/hydra-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCutTech%2Fhydra-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCutTech%2Fhydra-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCutTech%2Fhydra-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCutTech%2Fhydra-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeCutTech","download_url":"https://codeload.github.com/CodeCutTech/hydra-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCutTech%2Fhydra-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263715325,"owners_count":23500241,"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":"2025-07-05T09:04:56.493Z","updated_at":"2025-07-05T09:04:57.311Z","avatar_url":"https://github.com/CodeCutTech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hydra Demo\n\n[![View the Article](https://img.shields.io/badge/CodeCut-View%20the%20Article-blue)](https://codecut.ai/stop-hard-coding-in-a-data-science-project-use-configuration-files-instead/)  \n\n## Set up the environment\n\n1. Install [uv](https://github.com/astral-sh/uv)\n1. Set up the environment:\n\n```bash\nuv sync\n```\n\n## Download the data\n\n1. Download the dataset from [Kaggle](https://www.kaggle.com/datasets/uciml/red-wine-quality-cortez-et-al-2009?resource=download)\n\n2. Move the downloaded file to `data/raw/`\n\n## Run the scripts\n\nRun the data processing script:\n\n```bash\nuv run src/process.py\n```\n\nRun the model training script:\n\n```bash\nuv run src/train_model.py\n```\n\nBoth scripts use Hydra for configuration management. The default configurations are in the `conf/main.yaml` file. You can override any configuration parameter using the command line. For example:\n\n```bash\n# Override test size in process.py\nuv run src/process.py process.test_size=0.3\n\n# Override hyperparameters in train_model.py\nuv run src/train_model.py train.hyperparameters.svm__C=10\n```\n\nTo see all available configuration options, you can use the `--help` flag:\n\n```bash\n# View configuration options for process.py\nuv run src/process.py --help\n\n# View configuration options for train_model.py\nuv run src/train_model.py --help\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecuttech%2Fhydra-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecuttech%2Fhydra-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecuttech%2Fhydra-demo/lists"}