mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-12 12:05:35 +08:00
Improve normalizer for scalar
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ class ProximalPolicyOptimization:
|
||||
batched_steps += 1
|
||||
episode_length += 1
|
||||
|
||||
reward = np.asscalar(self.reward_normalizer(np.array([reward])))
|
||||
reward = self.reward_normalizer(reward)
|
||||
rewards.append(reward)
|
||||
|
||||
if done:
|
||||
|
||||
Reference in New Issue
Block a user