Skip to content

Commit a809aa8

Browse files
bartokgcopybara-github
authored andcommitted
Fix numpy test issue.
PiperOrigin-RevId: 683926353 Change-Id: I88a15bf0cb64ee60a95bd6567128e61272e4e39c
1 parent 9919a23 commit a809aa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: tf_agents/bandits/agents/exp3_mixture_agent_test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ def testMixtureUpdate(
195195
reward_aggregates = self.evaluate(
196196
mixed_agent._variable_collection.reward_aggregates
197197
)
198-
self.assertAllInSet(reward_aggregates[: num_agents - 1], [0.999])
198+
self.assertAllClose(
199+
reward_aggregates[: num_agents - 1], [0.999] * (num_agents - 1)
200+
)
199201
agent_prob = 1 / num_agents
200202
est_rewards = 0.5 / agent_prob
201203
per_step_update = est_rewards

0 commit comments

Comments
 (0)