mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-09 11:13:47 +08:00
Support A2C
This commit is contained in:
@@ -51,3 +51,4 @@ class Config:
|
||||
self.max_steps = 0
|
||||
self.success_threshold = float('inf')
|
||||
self.render_episode_freq = 0
|
||||
self.rollout_length = None
|
||||
|
||||
@@ -60,6 +60,7 @@ def run_episodes(agent):
|
||||
if avg_reward > config.success_threshold:
|
||||
break
|
||||
|
||||
agent.close()
|
||||
return steps, rewards, avg_test_rewards
|
||||
|
||||
def sync_grad(target_network, src_network):
|
||||
|
||||
Reference in New Issue
Block a user