Skip to content

Commit

Permalink
use as keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Dec 13, 2024
1 parent 14e68a9 commit 0c244b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ Starting from the initial guess, the MAP point is calculated rapidly in one pass

# ╔═╡ 6796ae76-bc2d-4895-ba0a-5e2c23c50dfb
map_fit_stoch_mdl = maximum_a_posteriori(stochastic_mdl;
adtype = AutoMooncake(config = nothing),
adtype = ADTypes.AutoMooncake(; config = nothing),
initial_params = initial_guess
)

Expand All @@ -603,7 +603,7 @@ Now we can run NUTS, sampling 1000 posterior draws per chain for 4 chains.
# ╔═╡ 156272d7-56c4-4ac4-bf3e-7882f4edc144
chn2 = sample(
stochastic_mdl,
NUTS(; adtype = AutoMooncake(config = nothing)),
NUTS(; adtype = ADTypes.AutoMooncake(; config = nothing)),
MCMCThreads(), 1000, 4;
initial_params = fill(map_fit_stoch_mdl.values.array, 4)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ num_threads = min(10, Threads.nthreads())
inference_method = EpiMethod(
pre_sampler_steps = [ManyPathfinder(nruns = 4, maxiters = 100)],
sampler = NUTSampler(
adtype = AutoEnzyme(),
adtype = ADTypes.AutoEnzyme(),
ndraws = 2000,
nchains = num_threads,
mcmc_parallel = MCMCThreads())
Expand Down
2 changes: 1 addition & 1 deletion benchmark/make_epiaware_suite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
function make_epiaware_suite(model; check = true,
adbackends = [
:forwarddiff, :reversediff, :reversediff_compiled,
ADTypes.AutoMooncake(config = nothing),
ADTypes.AutoMooncake(; config = nothing),
ADTypes.AutoEnzyme()
])
suite = prefix_warnings(
Expand Down

0 comments on commit 0c244b8

Please sign in to comment.