From 929adb2d1481f2384d43239691b9612614d9aa3b Mon Sep 17 00:00:00 2001 From: Miguel Biron-Lattes Date: Tue, 19 Sep 2023 21:30:43 -0700 Subject: [PATCH 1/4] Update toy_stan_target.jl --- src/targets/toy_stan_target.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/targets/toy_stan_target.jl b/src/targets/toy_stan_target.jl index bd81c1a43..02b7bfeb1 100644 --- a/src/targets/toy_stan_target.jl +++ b/src/targets/toy_stan_target.jl @@ -17,10 +17,10 @@ toy_stan_unid_target(n_trials = 100000, n_successes = ceil(Int, n_trials/2)) = json(; n_trials, n_successes) ) -stan_funnel(dim = 9) = +stan_funnel(dim = 9, scale = 2.0) = StanLogPotential( stan_example_path("funnel.stan"), - json(; dim) + json(; dim, scale) ) stan_bernoulli(y = [0,1,0,0,0,0,0,0,0,1]) = @@ -62,4 +62,4 @@ json(; variables...) = map( pair -> "\"$(pair[1])\" : $(pair[2])", collect(variables)), ",") * - "}" \ No newline at end of file + "}" From 9db8f646d6806af92d03c5a44d9615597871cdbe Mon Sep 17 00:00:00 2001 From: Miguel Biron-Lattes Date: Tue, 19 Sep 2023 21:32:26 -0700 Subject: [PATCH 2/4] Update funnel.stan --- examples/stan/funnel.stan | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/stan/funnel.stan b/examples/stan/funnel.stan index 70e673f79..94fde874e 100644 --- a/examples/stan/funnel.stan +++ b/examples/stan/funnel.stan @@ -1,5 +1,6 @@ data { int dim; + real scale; } parameters { real y; @@ -7,5 +8,5 @@ parameters { } model { y ~ normal(0, 3); - x ~ normal(0, exp(y/2)); -} \ No newline at end of file + x ~ normal(0, exp(y/scale)); +} From 366cf52d29399102c7d4de5cd656a6bbff5db726 Mon Sep 17 00:00:00 2001 From: Miguel Biron-Lattes Date: Wed, 20 Sep 2023 07:12:58 -0700 Subject: [PATCH 3/4] rm strict kw --- docs/make.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index c9954f8f4..1371bb82b 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -26,7 +26,6 @@ makedocs(; authors="Miguel Biron-Lattes , Alexandre Bouchard-Côté , Trevor Campbell , Nikola Surjanovic , Saifuddin Syed , Paul Tiede ", repo="https://github.com/Julia-Tempering/Pigeons.jl/blob/{commit}{path}#{line}", sitename="Pigeons.jl", - strict=true, format=Documenter.HTML(; prettyurls=true, # always on, avoids confusion when building locally. If needed, serve the "build" folder locally with LiveServer. #get(ENV, "CI", "false") == "true", canonical="https://Julia-Tempering.github.io/Pigeons.jl", From 2b3718622b88f36ecc345bf1681166930d07b0a4 Mon Sep 17 00:00:00 2001 From: Miguel Biron-Lattes Date: Wed, 20 Sep 2023 08:55:29 -0700 Subject: [PATCH 4/4] force Documenter v0.27 (last known to work) --- docs/Project.toml | 4 ++++ docs/make.jl | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/Project.toml b/docs/Project.toml index 9d710adc5..39c7c4931 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -15,3 +15,7 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" SplittableRandoms = "8efc31e9-3fb0-4277-b18c-5a3d5d07abad" StatsFuns = "4c63d2b9-4356-54db-8cca-17b64c39e42c" StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd" + +[compat] +Documenter = "0.27" + diff --git a/docs/make.jl b/docs/make.jl index 1371bb82b..c9954f8f4 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -26,6 +26,7 @@ makedocs(; authors="Miguel Biron-Lattes , Alexandre Bouchard-Côté , Trevor Campbell , Nikola Surjanovic , Saifuddin Syed , Paul Tiede ", repo="https://github.com/Julia-Tempering/Pigeons.jl/blob/{commit}{path}#{line}", sitename="Pigeons.jl", + strict=true, format=Documenter.HTML(; prettyurls=true, # always on, avoids confusion when building locally. If needed, serve the "build" folder locally with LiveServer. #get(ENV, "CI", "false") == "true", canonical="https://Julia-Tempering.github.io/Pigeons.jl",