Skip to content

Commit

Permalink
reduce atol, disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Sep 30, 2024
1 parent faa2966 commit 4279d63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/benchmark-models/test_petab_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class GradientCheckSettings:
atol_sim: float = 1e-12
rtol_sim: float = 1e-12
# Absolute and relative tolerances for finite difference gradient checks.
atol_check: float = 1e-5
atol_check: float = 1e-7
rtol_check: float = 1e-2
# Step sizes for finite difference gradient checks.
step_sizes = [
Expand Down Expand Up @@ -134,7 +134,11 @@ def test_benchmark_gradient(model, scale):
solver=amici_solver,
scaled_parameters=scale,
scaled_gradients=scale,
cache=not debug,
# FIXME: there is some issue with caching in fiddy
# e.g. Elowitz_Nature2000-True fails with cache=True,
# but not with cache=False
# cache=not debug,
cache=False,
)

noise_level = 0.1
Expand Down

0 comments on commit 4279d63

Please sign in to comment.