-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding network instance to actor critic base class
Summary: This diff makes the following changes: - Added the option of passing instances of actor and critic networks as arguments for all actor critic algorithms. - Added integration tests for SAC, TD3, PPO and REINFORCE to check for performance with actor and critic network instances. A test for DDPG is not required since TD3 is based on DDPG. - These integration tests should be come the default once we migrate all algorithms to work with network instances. - Added more documentation for the actor-critic base class. - Removed some duplicate code for instantiating the target network for actor and critic networks. - Removed a unit test for ppo named "test_training_round_setup". This test was useful when ppo was based on reinforce. Now, ppo is based on the actor-critic base class and so this test is no longer needed. Reviewed By: rodrigodesalvobraz Differential Revision: D54978158 fbshipit-source-id: e95bea179f2698c53097c9e83cbb55871f2607bc
- Loading branch information
1 parent
f5b0945
commit bca09bd
Showing
10 changed files
with
414 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
Oops, something went wrong.