浏览代码
[WIP] Side Channel Design Changes (#3807)
[WIP] Side Channel Design Changes (#3807)
* 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 (TestAcade.../develop/dockerfile
GitHub
5 年前
当前提交
ea0c6fa0
共有 49 个文件被更改,包括 915 次插入 和 496 次删除
-
8Project/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DAgent.cs
-
8Project/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DHardAgent.cs
-
6Project/Assets/ML-Agents/Examples/Bouncer/Scripts/BouncerAgent.cs
-
7Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorAgent.cs
-
10Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorSettings.cs
-
9Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs
-
20Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridArea.cs
-
2Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridSettings.cs
-
18Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs
-
13Project/Assets/ML-Agents/Examples/Reacher/Scripts/ReacherAgent.cs
-
3Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/ProjectSettingsOverrides.cs
-
8Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs
-
6Project/Assets/ML-Agents/Examples/Soccer/Scripts/SoccerFieldArea.cs
-
8Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs
-
10Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
-
12Project/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs
-
23com.unity.ml-agents/CHANGELOG.md
-
42com.unity.ml-agents/Runtime/Academy.cs
-
4com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs
-
58com.unity.ml-agents/Runtime/SideChannels/EngineConfigurationChannel.cs
-
30com.unity.ml-agents/Runtime/SideChannels/FloatPropertiesChannel.cs
-
2com.unity.ml-agents/Runtime/SideChannels/RawBytesChannel.cs
-
17com.unity.ml-agents/Runtime/SideChannels/SideChannel.cs
-
45com.unity.ml-agents/Runtime/SideChannels/StatsSideChannel.cs
-
2com.unity.ml-agents/Runtime/SideChannels/EnvironmentParametersChannel.cs.meta
-
16com.unity.ml-agents/Tests/Editor/MLAgentsEditModeTest.cs
-
32com.unity.ml-agents/Tests/Editor/SideChannelTests.cs
-
10docs/Custom-SideChannels.md
-
27docs/Migrating.md
-
36docs/Python-API.md
-
4docs/Training-Curriculum-Learning.md
-
4docs/Using-Tensorboard.md
-
2ml-agents-envs/mlagents_envs/environment.py
-
88ml-agents-envs/mlagents_envs/side_channel/engine_configuration_channel.py
-
5ml-agents/mlagents/trainers/env_manager.py
-
19ml-agents/mlagents/trainers/learn.py
-
14ml-agents/mlagents/trainers/simple_env_manager.py
-
19ml-agents/mlagents/trainers/subprocess_env_manager.py
-
6ml-agents/mlagents/trainers/tests/test_simple_rl.py
-
70com.unity.ml-agents/Runtime/EnvironmentParameters.cs
-
11com.unity.ml-agents/Runtime/EnvironmentParameters.cs.meta
-
91com.unity.ml-agents/Runtime/SideChannels/EnvironmentParametersChannel.cs
-
218com.unity.ml-agents/Runtime/SideChannels/SideChannelsManager.cs
-
11com.unity.ml-agents/Runtime/SideChannels/SideChannelsManager.cs.meta
-
71com.unity.ml-agents/Runtime/StatsRecorder.cs
-
11com.unity.ml-agents/Runtime/StatsRecorder.cs.meta
-
37ml-agents-envs/mlagents_envs/side_channel/environment_parameters_channel.py
-
238com.unity.ml-agents/Runtime/SideChannels/SideChannelUtils.cs
-
0/com.unity.ml-agents/Runtime/SideChannels/EnvironmentParametersChannel.cs.meta