Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
cswinter committed Aug 18, 2019
1 parent f943b82 commit 93aea22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Expand Up @@ -101,7 +101,6 @@ def train(hps: HyperParams) -> None:
ret = np.array(final_values)
retscale = 1.0 - hps.gamma
for t in reversed(range(hps.seq_rosteps)):
# TODO: correction at end of rollout/episode
# TODO: correct for action delay?
for i in range(num_envs):
ti = t * num_envs + i
Expand All @@ -120,6 +119,7 @@ def train(hps: HyperParams) -> None:
all_returns = all_returns[perm]
all_actions = np.array(all_actions)[perm]
all_probs = np.array(all_probs)[perm]
advantages = advantages[perm]

# Policy Update
episode_loss = 0
Expand Down

0 comments on commit 93aea22

Please sign in to comment.