mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-29 12:40:58 +08:00
Pixel atari games with DQN
This commit is contained in:
1 parent
7c4919d6ac
commit
ad8c8ad853
8 files changed
+151
-50
No files matched your search
+1
-1
@@ -79,7 +79,6 @@ class AsyncAgent:
|
||||
episode_steps = 0
|
||||
episode_return = 0
|
||||
episode += 1
|
||||
policy.update_epsilon()
|
||||
terminal = False
|
||||
state = task.reset()
|
||||
state = state.reshape([1, -1])
|
||||
@@ -97,6 +96,7 @@ class AsyncAgent:
|
||||
state = state.reshape([1, -1])
|
||||
value = worker_network.predict(state)
|
||||
action = policy.sample(value.flatten())
|
||||
policy.update_epsilon()
|
||||
|
||||
batch_rewards = self.bootstrap_fn(batch_states, batch_actions, batch_rewards,
|
||||
state, action, terminal, self)
|
||||
|
||||
Reference in new issue
Block a user