{"id":13936410,"url":"https://github.com/openai/mlsh","last_synced_at":"2025-04-04T14:09:07.826Z","repository":{"id":42234341,"uuid":"108372619","full_name":"openai/mlsh","owner":"openai","description":" Code for the paper \"Meta-Learning Shared Hierarchies\"","archived":false,"fork":false,"pushed_at":"2023-07-06T21:08:25.000Z","size":413,"stargazers_count":611,"open_issues_count":17,"forks_count":162,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-03-28T13:10:05.607Z","etag":null,"topics":["paper"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/1710.09767","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/openai.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}},"created_at":"2017-10-26T06:47:59.000Z","updated_at":"2025-03-10T06:04:06.000Z","dependencies_parsed_at":"2022-09-07T17:02:14.368Z","dependency_job_id":"dd03f8f7-5a49-471b-b108-839b9709f6da","html_url":"https://github.com/openai/mlsh","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/openai%2Fmlsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fmlsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fmlsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fmlsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openai","download_url":"https://codeload.github.com/openai/mlsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190253,"owners_count":20898702,"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":["paper"],"created_at":"2024-08-07T23:02:38.724Z","updated_at":"2025-04-04T14:09:07.801Z","avatar_url":"https://github.com/openai.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"**Status:** Archive (code is provided as-is, no updates expected)\n\n# Meta-Learning Shared Hierarchies\n\nCode for [Meta-Learning Shared Hierarchies](https://s3-us-west-2.amazonaws.com/openai-assets/MLSH/mlsh_paper.pdf).\n\n\n##### Installation\n\n```\nAdd to your .bash_profile (replace ... with path to directory):\nexport PYTHONPATH=$PYTHONPATH:/.../mlsh/gym;\nexport PYTHONPATH=$PYTHONPATH:/.../mlsh/rl-algs;\n\nInstall MovementBandits environments:\ncd test_envs\npip install -e .\n```\n\n##### Running Experiments\n```\npython main.py --task AntBandits-v1 --num_subs 2 --macro_duration 1000 --num_rollouts 2000 --warmup_time 20 --train_time 30 --replay False AntAgent\n\n```\nOnce you've trained your agent, view it by running:\n```\npython main.py [...] --replay True --continue_iter [your iteration] AntAgent\n```\nThe MLSH script works on any Gym environment that implements the randomizeCorrect() function. See the envs/ folder for examples of such environments.\n\nTo run on multiple cores:\n```\nmpirun -np 12 python main.py ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenai%2Fmlsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenai%2Fmlsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenai%2Fmlsh/lists"}