mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-09 11:13:47 +08:00
reward_scaling
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ class DDPGAgent:
|
||||
for key in info:
|
||||
config.logger.scalar_summary('info_' + key, info[key], self.total_steps)
|
||||
|
||||
reward = self.reward_normalizer(reward)
|
||||
reward = self.reward_normalizer(reward) * config.reward_scaling
|
||||
|
||||
if not deterministic:
|
||||
self.replay.feed([state, action, reward, next_state, int(done)])
|
||||
|
||||
@@ -49,5 +49,6 @@ class Config:
|
||||
self.min_epsilon = 0
|
||||
self.save_interval = 0
|
||||
self.max_steps = 0
|
||||
self.reward_scaling = 1
|
||||
self.success_threshold = float('inf')
|
||||
self.render_episode_freq = 0
|
||||
|
||||
Reference in New Issue
Block a user