Skip to content

Commit

Permalink
Update turing.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Jan 5, 2024
1 parent 2e100a1 commit 3b4d23c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/turing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ s_sol = solve(s_prob, DynamicSS(Tsit5(), abstol = 1e-4, reltol = 1e-3))
# true data is 1.00, 0.25
data = [1.05, 0.23]
priors = [truncated(Normal(2.0, 0.2), 0, 3)]
bayesian_result = turing_inference(s_prob, DynamicSS(Tsit5(), abstol = 1e-4, reltol = 1e-3),
bayesian_result = turing_inference(s_prob, DynamicSS(Tsit5()),
nothing, data, priors;
num_samples = 500,
maxiters = 1e6,
syms = [])
syms = [],
abstol = 1e-4, reltol = 1e-3,)

@test mean(get(bayesian_result, )[1])2.0 atol=3e-1

0 comments on commit 3b4d23c

Please sign in to comment.