Skip to content

Commit

Permalink
Update hybrid
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Oct 5, 2024
1 parent 0ea755c commit 289bd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/advanced/HybridImaging/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ skym = SkyModel(sky, skyprior, g; metadata=skymetadata)

# This is everything we need to specify our posterior distribution, which our is the main
# object of interest in image reconstructions when using Bayesian inference.
using Enzyme
post = VLBIPosterior(skym, intmodel, dvis; admode=set_runtime_activity(Enzyme.Reverse))

# To sample from our prior we can do
Expand All @@ -179,7 +180,6 @@ fig |> DisplayAs.PNG |> DisplayAs.Text #hide
# To use this we use the [`comrade_opt`](@ref) function
using Optimization
using OptimizationOptimJL
using Enzyme
xopt, sol = comrade_opt(post, LBFGS();
initial_params=prior_sample(rng, post), maxiters=1000, g_tol=1e0)

Expand Down

0 comments on commit 289bd34

Please sign in to comment.