Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Feb 21, 2024
1 parent 5a5cd8d commit b79315d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ makedocs(;
ComradeOptimization, ComradeAHMC,
ComradeNested, ComradeDynesty,
ComradeAdaptMCMC],
repo="https://github.com/ptiede/Comrade.jl/blob/{commit}{path}#{line}",
# repo="https://github.com/ptiede/Comrade.jl/blob/{commit}{path}#{line}",
sitename="Comrade.jl",
format = Documenter.HTML(;prettyurls=true),
pages=Any[
Expand Down
10 changes: 5 additions & 5 deletions examples/ClosureImaging/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ DisplayAs.Text(DisplayAs.PNG(fig)) #hide
using ComradeAHMC
using Zygote
metric = DiagEuclideanMetric(ndim)
chain = sample(post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500);
chain = sample(post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500, progress=false);


# !!! warning
Expand All @@ -212,16 +212,16 @@ simg = std(imgs)
fig = CM.Figure(;resolution=(700, 700));
CM.image(fig[1,1], mimg,
axis=(xreversed=true, aspect=1, title="Mean Image"),
colormap=:afmhot)
colormap=:afmhot);
CM.image(fig[1,2], simg./(max.(mimg, 1e-5)),
axis=(xreversed=true, aspect=1, title="1/SNR",), colorrange=(0.0, 2.0),
colormap=:afmhot)
colormap=:afmhot);
CM.image(fig[2,1], imgs[1],
axis=(xreversed=true, aspect=1,title="Draw 1"),
colormap=:afmhot)
colormap=:afmhot);
CM.image(fig[2,2], imgs[end],
axis=(xreversed=true, aspect=1,title="Draw 2"),
colormap=:afmhot)
colormap=:afmhot);
CM.hidedecorations!.(fig.content)
DisplayAs.Text(DisplayAs.PNG(fig)) #hide

Expand Down
2 changes: 1 addition & 1 deletion examples/HybridImaging/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ CM.image(g, skymodel(post, xopt), axis=(aspect=1, xreversed=true, title="MAP"),
# We will now move directly to sampling at this point.
using ComradeAHMC
metric = DiagEuclideanMetric(ndim)
chain = sample(rng, post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500, initial_params=xopt, progress=true);
chain = sample(rng, post, AHMC(;metric, autodiff=Val(:Zygote)), 700; n_adapts=500, initial_params=xopt, progress=false);

# We then remove the adaptation/warmup phase from our chain
chain = chain[501:end]
Expand Down

0 comments on commit b79315d

Please sign in to comment.