Skip to content

Commit

Permalink
Set seed to 1 for the bsuite catch environment in search_test.py.
Browse files Browse the repository at this point in the history
This test relies on deterministic environment behavior, so setting the seed will ensure this.

PiperOrigin-RevId: 328301292
Change-Id: I432ce7aed2459c328267e1a813a2f309fdddd2bf
  • Loading branch information
fastturtle authored and copybara-github committed Aug 25, 2020
1 parent 6b1b413 commit 5537cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/agents/tf/mcts/search_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestSearch(parameterized.TestCase):
'bfs',
])
def test_catch(self, policy_type: Text):
env = catch.Catch(rows=2)
env = catch.Catch(rows=2, seed=1)
num_actions = env.action_spec().num_values
model = simulator.Simulator(env)
eval_fn = lambda _: (np.ones(num_actions) / num_actions, 0.)
Expand Down

0 comments on commit 5537cc8

Please sign in to comment.