{"id":19819791,"url":"https://github.com/dongminlee94/meta-learning-for-everyone","last_synced_at":"2025-10-25T17:31:34.777Z","repository":{"id":36981678,"uuid":"241558709","full_name":"dongminlee94/meta-learning-for-everyone","owner":"dongminlee94","description":"\"모두를 위한 메타러닝\" 책에 대한 코드 저장소","archived":false,"fork":false,"pushed_at":"2024-08-13T04:19:29.000Z","size":4311,"stargazers_count":102,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-03T17:51:41.367Z","etag":null,"topics":["maml","maml-rl","mann","matching-network","meta-learning","meta-rl","meta-sl","pearl","prototypical-network","rl2","snail"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dongminlee94.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}},"created_at":"2020-02-19T07:24:41.000Z","updated_at":"2024-12-12T08:49:37.000Z","dependencies_parsed_at":"2024-04-07T02:37:58.798Z","dependency_job_id":"58cc2c68-b0a6-4aea-bfad-d2e0547a01ed","html_url":"https://github.com/dongminlee94/meta-learning-for-everyone","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/dongminlee94%2Fmeta-learning-for-everyone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongminlee94%2Fmeta-learning-for-everyone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongminlee94%2Fmeta-learning-for-everyone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongminlee94%2Fmeta-learning-for-everyone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dongminlee94","download_url":"https://codeload.github.com/dongminlee94/meta-learning-for-everyone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238188524,"owners_count":19430877,"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":["maml","maml-rl","mann","matching-network","meta-learning","meta-rl","meta-sl","pearl","prototypical-network","rl2","snail"],"created_at":"2024-11-12T10:19:57.486Z","updated_at":"2025-10-25T17:31:29.290Z","avatar_url":"https://github.com/dongminlee94.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/dongminlee94/meta-learning-for-everyone.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/dongminlee94/meta-learning-for-everyone/context:python)\n[![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Python 3.8.8](https://img.shields.io/badge/python-3.8.8-blue.svg)](https://www.python.org/downloads/release/python-388/)\n[![PyTorch 1.9.1](https://img.shields.io/badge/pytorch-1.9.1-red.svg)](https://pytorch.org/blog/pytorch-1.9-released/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/imports-isort-white)](https://pycqa.github.io/isort/)\n[![Linting: flake8 \u0026 pylint](https://img.shields.io/badge/linting-flake8%20%26%20pylint-deepblue)](https://pypi.org/project/pytest-pylint/)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src='img/cover.jpeg' width=\"400\" /\u003e\n\u003c/p\u003e\n\n**This repository supports English. If you use English, move to [language/english](https://github.com/dongminlee94/meta-learning-for-everyone/tree/language/english) branch.**\n\n# 모두를 위한 메타러닝: PyTorch를 활용한 Few-shot 학습 모델과 빠른 강화학습 에이전트 만들기\n\n\"모두를 위한 메타러닝\" 책에 대한 코드 레포지토리입니다.\n\n## 필요 조건\n\n이 레포지토리에서는 **python 3.8.15** 버전을 사용합니다.\n\n## 설치 및 사용 방법\n\n### 1. Anaconda 설치\n\n먼저, 아래의 링크에서 Anaconda를 설치합니다.\n\nhttps://www.anaconda.com/\n\n### 2. Anaconda 환경 만들기\n\n다음으로, 아래의 명령어들을 통해 새로운 python 환경을 만들고, 그 환경을 활성화합니다.\n\n```bash\n(base) $ conda create -y -n meta python=3.8.8\n\n(base) $ conda activate meta\n\n(meta) $ conda env list\n```\n\n### 3. 패키지 설치\n\n이어서, 이 레포지토리를 clone한 뒤, 다음의 명령어를 실행하여 필요한 패키지들을 설치해주세요.\n\n**MacOS 및 Linux 사용자**\n\n```bash\n# 사용자\n(meta) $ make init\n\n# 개발자\n(meta) $ make init-dev\n```\n\n**Windows 사용자**\n\n```bash\n# 사용자\n(meta) $ \"./scripts/window-init.bat\"\n```\n\n### 4. 모델 학습 및 결과 확인\n\n**Meta-SL**\n\nMeta-SL은 각 알고리즘 폴더로 이동하여 `jupyter notebook`을 이용하여 해당 알고리즘을 실행해주시고 결과를 확인해주세요.\n\n```bash\n(meta) $ jupyter notebook\n```\n\nColab을 이용하실 경우, [Colab에서 Torchmeta 설치하기](https://github.com/dongminlee94/meta-learning-for-everyone/issues/117) 가이드를 참고하여 Torchmeta를 설치하고 이용해주세요.\n\n**Meta-RL**\n\nMeta-RL은 각 알고리즘 폴더로 이동하여 아래의 명령어들을 이용하여 실행해주세요.\n\n```bash\n# RL^2\n(meta) $ python rl2_trainer.py\n\n# MAML\n(meta) $ python maml_trainer.py\n\n# PEARL\n(meta) $ python pearl_trainer.py\n```\n\nMeta-RL의 경우, 텐서보드를 이용하여 학습 결과를 확인해주세요.\n\n```bash\n(meta) $ tensorboard --logdir=./results\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/dongminlee94/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/29733842?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDongmin Lee\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dongminlee94/meta-learning-for-everyone/commits?author=dongminlee94\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/dongminlee94/meta-learning-for-everyone/commits?author=dongminlee94\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Clyde21c/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/35162035?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSeunghyun Lee\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dongminlee94/meta-learning-for-everyone/commits?author=Clyde21c\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/dongminlee94/meta-learning-for-everyone/commits?author=Clyde21c\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/LunaJang\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/25239851?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLuna Jang\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dongminlee94/meta-learning-for-everyone/commits?author=LunaJang\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.endtoend.ai\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/6107926?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSeungjae Ryan Lee\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dongminlee94/meta-learning-for-everyone/commits?author=seungjaeryanlee\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongminlee94%2Fmeta-learning-for-everyone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdongminlee94%2Fmeta-learning-for-everyone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongminlee94%2Fmeta-learning-for-everyone/lists"}