-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Method to return stacked observations #5547
Conversation
com.unity.ml-agents/CHANGELOG.md
Outdated
@@ -13,6 +13,7 @@ and this project adheres to | |||
### Minor Changes | |||
#### com.unity.ml-agents / com.unity.ml-agents.extensions (C#) | |||
- Added the capacity to initialize behaviors from any checkpoint and not just the latest one (#5525) | |||
- Agent can now view the StackedVectorObservations (#5523) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change this to read:
"Added the ability to get a read-only view of the stacked observations (#5523)
@@ -279,5 +286,20 @@ public BuiltInSensorType GetBuiltInSensorType() | |||
IBuiltInSensor wrappedBuiltInSensor = m_WrappedSensor as IBuiltInSensor; | |||
return wrappedBuiltInSensor?.GetBuiltInSensorType() ?? BuiltInSensorType.Unknown; | |||
} | |||
|
|||
/// <summary> | |||
/// Returns a read-only view of the observations that added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this to read:
"Returns the stacked observations as a read-only collection.
/// <summary> | ||
/// Returns a read-only view of the observations that added. | ||
/// </summary> | ||
/// <returns>A read-only view of the observations list.</returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this to read:
"The stacked observations as a read-only collection."
64177d4
to
80e4fe8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
//[ | ||
//[1,2] | ||
//[3,4] | ||
//[5,6] | ||
//] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these comments needed?
Proposed change(s)
Agent can now access the stacked vector observations by calling
GetStackedObservations()
#5523Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments