-
Notifications
You must be signed in to change notification settings - Fork 324
Add TEPPO documentation #2161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nicolengsy
wants to merge
9
commits into
master
Choose a base branch
from
nn_teppo_docs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add TEPPO documentation #2161
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a41ccce
Missing format
nicolengsy 07049d0
Complete teppo docs
nicolengsy 65062b2
Complete teppo docs
nicolengsy 14bbf19
Update article reference
nicolengsy ee7763b
Merge branch 'master' into nn_teppo_docs
nicolengsy 2e9b056
Fix pre-commit
nicolengsy bbd459a
Merge branch 'master' into nn_teppo_docs
nicolengsy 4ee2e66
Fix pre-commit
nicolengsy 51543c2
Fix typo
nicolengsy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # Proximal Policy Optimization with Task Embedding (TEPPO) | ||
|
|
||
|
|
||
| ```eval_rst | ||
| .. list-table:: | ||
| :header-rows: 0 | ||
| :stub-columns: 1 | ||
| :widths: auto | ||
|
|
||
| * - **Paper** | ||
| - Learning Skill Embeddings for Transferable Robot Skills :cite:`hausman2018learning` | ||
| * - **Framework(s)** | ||
| - .. figure:: ./images/tf.png | ||
| :scale: 20% | ||
| :class: no-scaled-link | ||
|
|
||
| Tensorflow | ||
| * - **API Reference** | ||
| - `garage.tf.algos.TEPPO <../_autoapi/garage/torch/algos/index.html#garage.tf.algos.TEPPO>`_ | ||
| * - **Code** | ||
| - `garage/tf/algos/te_ppo.py <https://github.com/rlworkgroup/garage/blob/master/src/garage/tf/algos/te_ppo.py>`_ | ||
| * - **Examples** | ||
| - :ref:`te_ppo_metaworld_mt1_push`, :ref:`te_ppo_metaworld_mt10`, :ref:`te_ppo_metaworld_mt50`, :ref:`te_ppo_point` | ||
| ``` | ||
|
|
||
| Proximal Policy Optimization Algorithms (PPO) is a family of policy gradient methods which alternate between sampling data through interaction with the environment, and optimizing a "surrogate" objective function using stochastic gradient ascent. TEPPO parameterizes the PPO policy via a shared skill embedding space. | ||
|
|
||
| ## Default Parameters | ||
|
|
||
| ```py | ||
| discount=0.99, | ||
| gae_lambda=0.98, | ||
| lr_clip_range=0.01, | ||
| max_kl_step=0.01, | ||
| policy_ent_coeff=1e-3, | ||
| encoder_ent_coeff=1e-3, | ||
| inference_ce_coeff=1e-3 | ||
| ``` | ||
|
|
||
| ## Examples | ||
|
|
||
| ### te_ppo_metaworld_mt1_push | ||
|
|
||
| ```eval_rst | ||
| .. literalinclude:: ../../examples/tf/te_ppo_metaworld_mt1_push.py | ||
| ``` | ||
|
|
||
| ### te_ppo_metaworld_mt10 | ||
|
|
||
| ```eval_rst | ||
| .. literalinclude:: ../../examples/tf/te_ppo_metaworld_mt10.py | ||
| ``` | ||
|
|
||
| ### te_ppo_metaworld_mt50 | ||
|
|
||
| ```eval_rst | ||
| .. literalinclude:: ../../examples/tf/te_ppo_metaworld_mt50.py | ||
| ``` | ||
|
|
||
| ### te_ppo_point | ||
|
|
||
| ```eval_rst | ||
| .. literalinclude:: ../../examples/tf/te_ppo_point.py | ||
| ``` | ||
|
|
||
| ## References | ||
|
|
||
| ```eval_rst | ||
| .. bibliography:: references.bib | ||
| :style: unsrt | ||
| :filter: docname in docnames | ||
| ``` | ||
|
|
||
| ---- | ||
|
|
||
| *This page was authored by Nicole Shin Ying Ng ([@nicolengsy](https://github.com/nicolengsy)).* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.