Skip to content

Commit

Permalink
Add a tolerance to differential_evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
davidt0x committed Oct 15, 2024
1 parent 3a0cdbe commit 9ec8c1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def reward_rate(sim_data):
if expected_result is not None:
if opt_method == "differential_evolution":
np.testing.assert_allclose(
list(pec.optimized_parameter_values.values()), expected_result, rtol=1e-3
list(pec.optimized_parameter_values.values()), expected_result, atol=1e-2
)
else:
np.testing.assert_allclose(list(pec.optimized_parameter_values.values()), expected_result)
Expand Down

0 comments on commit 9ec8c1d

Please sign in to comment.