-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Documentation for Goal conditioning #5149
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
Merged
+33
−0
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1c9abd0
Documentation for Goal conditioning
vincentpierre 5104fb9
hyper is the default
vincentpierre a2e3003
Update docs/Training-Configuration-File.md
vincentpierre 3f87f41
Update docs/Learning-Environment-Design-Agents.md
vincentpierre 99202c9
addressing comments: Renaming goal observation to goal signal in docs
vincentpierre 6ccae9c
addressing comments
vincentpierre 3e2a3e0
Update docs/Learning-Environment-Design-Agents.md
vincentpierre afae4be
Update docs/Learning-Environment-Design-Agents.md
vincentpierre a85a417
Update docs/Learning-Environment-Design-Agents.md
vincentpierre 531b815
Update docs/Learning-Environment-Design-Agents.md
vincentpierre c3e1ef2
Update docs/Learning-Environment-Design-Agents.md
vincentpierre e94e35a
Update docs/Learning-Environment-Design-Agents.md
vincentpierre 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -19,6 +19,8 @@ | |||||
- [RayCast Observation Summary & Best Practices](#raycast-observation-summary--best-practices) | ||||||
- [Variable Length Observations](#variable-length-observations) | ||||||
- [Variable Length Observation Summary & Best Practices](#variable-length-observation-summary--best-practices) | ||||||
- [Goal Signals](#goal-signals) | ||||||
- [Goal Signal Summary & Best Practices](#goal-signal-summary--best-practices) | ||||||
- [Actions and Actuators](#actions-and-actuators) | ||||||
- [Continuous Actions](#continuous-actions) | ||||||
- [Discrete Actions](#discrete-actions) | ||||||
|
@@ -560,6 +562,36 @@ between -1 and 1. | |||||
of an entity to the `BufferSensor`. | ||||||
- Normalize the entities observations before feeding them into the `BufferSensor`. | ||||||
|
||||||
### Goal Signals | ||||||
vincentpierre marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
It is possible for agents to collect observations that will be treated as "goal." | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think within this paragraph we should also call these goal signals, and not goals. |
||||||
A goal is used to condition the policy of the Agent, meaning that if the goal | ||||||
changes, the policy (i.e. the mapping from observations to actions) will change | ||||||
as well. Note that this is true | ||||||
for any observation since all observations influence the policy of the Agent to | ||||||
some degree. But by specifying a goal explicitly, we can make this conditioning | ||||||
more important to the agent. This feature can be used in settings where an agent | ||||||
must learn to solve different tasks that are similar by some aspects because the | ||||||
agent will learn to reuse learnings from different tasks to generalize better. | ||||||
In Unity, you can specify that a `VectorSensor` or | ||||||
a `CameraSensor` is a goal by attaching a `VectorSensorComponent` or a | ||||||
`CameraSensorComponent` to the Agent can selecting `Goal` as `Observation Type`. | ||||||
vincentpierre marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
On the trainer side, there are two different ways to condition the policy. This | ||||||
setting is determined by the | ||||||
[conditioning_type parameter](Training-Configuration-File.md#common-trainer-configurations). | ||||||
If set to `hyper` (default) a [HyperNetwork](https://arxiv.org/pdf/1609.09106.pdf) | ||||||
will be used to generate some of the | ||||||
weights of the policy using the goal observations as input. Note that using a | ||||||
HyperNetwork requires a lot of computations, it is recommended to use a smaller | ||||||
number of hidden units in the policy to alleviate this. | ||||||
If set to `none` the goals will be considered as regular observations. | ||||||
|
||||||
#### Goal Signal Summary & Best Practices | ||||||
- Attach a `VectorSensorComponent` or `CameraSensorComponent` to an agent and | ||||||
set the observation type to goal to use the feature. | ||||||
- Set the conditioning_type parameter in the training configuration. | ||||||
- Reduce the number of hidden units in the network when using the HyperNetwork | ||||||
conditioning type. | ||||||
|
||||||
## Actions and Actuators | ||||||
|
||||||
|
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.