Skip to content

Commit

Permalink
Merge pull request #148 from flow-project/reward_fix
Browse files Browse the repository at this point in the history
inverted reward
  • Loading branch information
AboudyKreidieh committed Sep 17, 2018
2 parents 272e518 + 7dae554 commit ed3113d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/envs/green_wave_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def get_state(self):
def compute_reward(self, state, rl_actions, **kwargs):
"""See class definition."""
if self.env_params.evaluate:
return rewards.min_delay_unscaled(self)
return - rewards.min_delay_unscaled(self)
else:
return rewards.desired_velocity(self, fail=kwargs["fail"])

Expand Down

0 comments on commit ed3113d

Please sign in to comment.