Skip to content

Commit

Permalink
fix sac eval mode (#169)
Browse files Browse the repository at this point in the history
* fix sac eval mode

* update continuous test to use LunarLander
  • Loading branch information
cpnota committed Sep 29, 2020
1 parent 867ba55 commit 72a5ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion all/agents/sac.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def act(self, state):
return self._action

def eval(self, state):
return self.policy.eval(state)[0]
return self.policy.eval(state)

def _train(self):
if self._should_train():
Expand Down
2 changes: 1 addition & 1 deletion all/presets/continuous_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_sac(self):
self.validate(sac(replay_start_size=50, device='cpu'))

def validate(self, make_agent):
validate_agent(make_agent, GymEnvironment('Pendulum-v0'))
validate_agent(make_agent, GymEnvironment('LunarLanderContinuous-v2'))

if __name__ == '__main__':
unittest.main()

0 comments on commit 72a5ffc

Please sign in to comment.