{"id":19899168,"url":"https://github.com/tootouch/config-setting","last_synced_at":"2026-05-13T14:37:19.535Z","repository":{"id":205714144,"uuid":"714886262","full_name":"TooTouch/config-setting","owner":"TooTouch","description":"How to set configurations for ML/DL experiments","archived":false,"fork":false,"pushed_at":"2023-11-06T05:23:51.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T20:44:28.670Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TooTouch.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}},"created_at":"2023-11-06T03:29:01.000Z","updated_at":"2023-11-07T06:36:31.000Z","dependencies_parsed_at":"2023-11-06T05:43:03.845Z","dependency_job_id":null,"html_url":"https://github.com/TooTouch/config-setting","commit_stats":null,"previous_names":["tootouch/config-setting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fconfig-setting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fconfig-setting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fconfig-setting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fconfig-setting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TooTouch","download_url":"https://codeload.github.com/TooTouch/config-setting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329416,"owners_count":19944984,"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-12T20:07:25.293Z","updated_at":"2026-05-13T14:37:19.487Z","avatar_url":"https://github.com/TooTouch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# config-setting\nHow to set configurations.\n\n# argparse\n\n```\npip install argparse\n```\n\n**장점**\n- metavar를 통한 argument 의미 설정\n- type \u0026 default 지정\n- help를 통한 argument 설명\n- choices를 통해 선택 후보 설정\n- action 기능을 사용하여 on-off 기능\n\n**단점**\n- 한 눈에 확인하기 어려움\n- 계층적으로 사용할 수 없음\n\n\n# omegaconf\n\n```\npip install omegaconf\n```\n\n**장점**\n- yaml 파일 사용 간편함 \n- yaml은 계층적으로 argument를 구분할 수 있음\n- 기본값을 두고 사용할 때 직관적임\n- `from_cli`를 사용하여 argparse와 같이 추가적인 argument를 받아올 수 있음\n\n**단점**\n- 변수에 대한 설명을 달기 불편함\n- argparse의 choices와 같은 기능이 없음\n- argument에 대한 타입 설정이 없음\n\n\n# Fire\n\n```\npip install fire\n```\n\n**장점**\n- 함수에 필요한 argument를 바로 지정할 수 있음\n- 함수에 필요한 config를 따로 정의할 필요가 없음\n\n**단점**\n- argument를 계층적으로 구분할 수 없음\n- argument가 많아지만 코드가 지저분해짐","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftootouch%2Fconfig-setting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftootouch%2Fconfig-setting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftootouch%2Fconfig-setting/lists"}