Skip to content

Commit

Permalink
test: relax test tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Aug 21, 2024
1 parent ee723a7 commit d5e430a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ext/ProjectionExt/inference_with_projection_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ end
model = mymodel(C = C), data = (y = y,), meta = mymeta(), constraints = myconstraints(), initialization = myinitialization(), free_energy = true, iterations = 40
)

@test mean(result.posteriors[:a][end]) a atol = 1e-2
@test foo(mean(result.posteriors[:a][end]), mean(result.posteriors[:b][end])) foo(a, b) atol = 1e-2
@test mean(result.posteriors[][end]) foo(a, b) atol = 1e-2
@test mean(result.posteriors[:a][end]) a atol = 2e-2
@test foo(mean(result.posteriors[:a][end]), mean(result.posteriors[:b][end])) foo(a, b) atol = 2e-2
@test mean(result.posteriors[][end]) foo(a, b) atol = 2e-2
@test first(result.free_energy) > last(result.free_energy)
@test count(<(0), diff(result.free_energy)) > 0.95

Expand Down

0 comments on commit d5e430a

Please sign in to comment.