-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[Side Channels] Edited the documenation and renamed a few things #3833
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
[Side Channels] Edited the documenation and renamed a few things #3833
Conversation
com.unity.ml-agents/CHANGELOG.md
Outdated
- The SideChannel API has changed: | ||
- `EnvironmentParameters` replaces the default `FloatPropertiesChannel`. You can access the `EnvironmentParameters` with `Academy.Instance.EnvironmentParameters` on C# and create an `EnvironmentParametersChannel` on Python | ||
- `SideChannelUtils` was renamed `SideChannelManager` | ||
- The `Academy` instance now has a `StatsRecorder` property |
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.
Do we want to emphasize that the StatsSideChannel is now internal and that this is the new way
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.
Also mention that EngineConfigurationChannel is now internal?
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.
Worth mentioning that OnMessageReceived
is now internal?
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.
StatsSideChannel hasn't actually been released yet, so we should just edit the existing line for it.
docs/Migrating.md
Outdated
@@ -33,6 +33,11 @@ double-check that the versions are in the same. The versions can be found in | |||
- The signature of `Agent.Heuristic()` was changed to take a `float[]` as a | |||
parameter, instead of returning the array. This was done to prevent a common | |||
source of error where users would return arrays of the wrong size. | |||
- The SideChannel API has changed: |
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.
We need to mention the user-facing changes of going from StatsSideChannel to Academy.Instance.StatsRecorder
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.
And that StatsSideChannel is now internal
docs/Migrating.md
Outdated
@@ -33,6 +33,11 @@ double-check that the versions are in the same. The versions can be found in | |||
- The signature of `Agent.Heuristic()` was changed to take a `float[]` as a | |||
parameter, instead of returning the array. This was done to prevent a common | |||
source of error where users would return arrays of the wrong size. | |||
- The SideChannel API has changed: |
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.
Should we add that EngineConfigurationChannel is no internal
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.
Worth mentioning that OnMessageReceived
is now internal?
docs/Migrating.md
Outdated
- `EnvironmentParameters` replaces the default `FloatPropertiesChannel`. You can access the `EnvironmentParameters` with `Academy.Instance.EnvironmentParameters` | ||
- `SideChannelUtils` was renamed `SideChannelManager` | ||
- The `Academy` instance now has a `StatsRecorder` property | ||
- `SideChannelManager.GetSideChannel(s)` has been removed from the API |
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.
Also UnregisterAllSideChannels
com.unity.ml-agents/CHANGELOG.md
Outdated
- `EnvironmentParameters` replaces the default `FloatPropertiesChannel`. You can access the `EnvironmentParameters` with `Academy.Instance.EnvironmentParameters` on C# and create an `EnvironmentParametersChannel` on Python | ||
- `SideChannelUtils` was renamed `SideChannelManager` | ||
- The `Academy` instance now has a `StatsRecorder` property | ||
- `SideChannelManager.GetSideChannel(s)` has been removed from the API |
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.
Same - SideChannelManager/Utils wasn't in 0.15, so we don't need to mention it here.
@@ -54,6 +59,10 @@ double-check that the versions are in the same. The versions can be found in | |||
- If your Agent class overrides `Heuristic()`, change the signature to | |||
`public override void Heuristic(float[] actionsOut)` and assign values to | |||
`actionsOut` instead of returning an array. | |||
- If you used `SideChannels` you must: |
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.
Revise the "Replace Academy.FloatProperties
..." lines above instead.
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.
See inline comments - the changelog and migration need to be revised, considering there's already SideChannel mentions for this release.
Co-Authored-By: Chris Elion <[email protected]>
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.
Looks good.
Co-Authored-By: Chris Elion <[email protected]>
* Make EnvironmentParameters a first-class citizen in the API Missing: Python conterparts and testing. * Minor comment fix to Engine Parameters * A second minor fix. * Make EngineConfigChannel Internal and add a singleton/sealed accessor * Make StatsSideChannel Internal and add a singleton/sealed accessor * Changes to SideChannelUtils - Disallow two sidechannels of the same type to be added - Remove GetSideChannels that return a list as that is now unnecessary - Make most methods except (register/unregister) internal to limit users impacting the “system-level” side channels - Add an improved comment to SideChannel.cs * Added Dispose methods to system-level sidechannel wrappers - Specifically to StatsRecorder, EnvironmentParameters and EngineParameters. - Updated Academy.Dispose to take advantage of these. - Updated Editor tests to cover all three “system-level” side channels. Kudos to Unit Tests (TestAcademy / TestAcademyDispose) for catching these. * Removed debub log. * Back-up commit. * Revert "Back-up commit." This reverts commit f81e835. * key changes to wrapper classes made the wrapper classes non-singleton (but internal constructors) made EngineParameters internal * Re-enabled the option to add multiple side channels of the same type * Fixed example env * Add an enum flag to the EnvParamsChannel * Adding .cs.meta files * Update engine config side channel Removed unnecessary accessors Made capture frame rate a parameter * Rename SideChannelUtils —> SideChannelsManager * PR feedback * Minor PR feedback. * Python side changes to the SideChannel redesign (#3826) * Modified the EngineConfig to send one message per field * Created the Python Environment Parameters Channel and hooked it in * Make OnMessageReceived protected * addressing comments * [Side Channels] Edited the documenation and renamed a few things (#3833) * Edited the documetation and renamed a few things * addressing comments * Update docs/Python-API.md Co-Authored-By: Chris Elion <[email protected]> * Update com.unity.ml-agents/CHANGELOG.md Co-Authored-By: Chris Elion <[email protected]> * Removing unecessary migrating line Co-authored-by: Chris Elion <[email protected]> * Addressing renaming comments * Removing the EngineParameters class Co-authored-by: Vincent-Pierre BERGES <[email protected]> Co-authored-by: Chris Elion <[email protected]>
Proposed change(s)
Update to the documentation for #3807
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments