Skip to content

Commit

Permalink
use larger atol
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Nov 24, 2023
1 parent 5b6fe86 commit 3b2470e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions test/gibbs.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@testset "Simple gibbs" begin
srng = StableRNG(123)

model_def = @bugs begin
# Likelihood
for i in 1:N
Expand Down Expand Up @@ -73,10 +75,10 @@
:gen_quant
]
means = mean(chn)
@test means[:alpha].nt.mean[1] 2.1 atol = 0.2
@test means[:beta].nt.mean[1] 2.1 atol = 0.2
@test means[:sigma].nt.mean[1] 0.95 atol = 0.2
@test means[:gen_quant].nt.mean[1] 4.2 atol = 0.2
@test means[:alpha].nt.mean[1] 2.1 atol = 0.4
@test means[:beta].nt.mean[1] 2.1 atol = 0.4
@test means[:sigma].nt.mean[1] 0.95 atol = 0.3
@test means[:gen_quant].nt.mean[1] 4.2 atol = 0.4

sample_size = 2000
hmc_chn = AbstractMCMC.sample(
Expand Down
2 changes: 0 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ using StableRNGs
using Test
using UnPack

srng = StableRNG(123)

@testset "Function Unit Tests" begin
DocMeta.setdocmeta!(
JuliaBUGS,
Expand Down

0 comments on commit 3b2470e

Please sign in to comment.