Skip to content

Commit

Permalink
Fix numpy test issue.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 683926353
Change-Id: I88a15bf0cb64ee60a95bd6567128e61272e4e39c
  • Loading branch information
bartokg authored and copybara-github committed Oct 9, 2024
1 parent 9919a23 commit a809aa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tf_agents/bandits/agents/exp3_mixture_agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def testMixtureUpdate(
reward_aggregates = self.evaluate(
mixed_agent._variable_collection.reward_aggregates
)
self.assertAllInSet(reward_aggregates[: num_agents - 1], [0.999])
self.assertAllClose(
reward_aggregates[: num_agents - 1], [0.999] * (num_agents - 1)
)
agent_prob = 1 / num_agents
est_rewards = 0.5 / agent_prob
per_step_update = est_rewards
Expand Down

0 comments on commit a809aa8

Please sign in to comment.