Skip to content

Commit

Permalink
Fix errors in CI and docs build (#90)
Browse files Browse the repository at this point in the history
* Point to latest version of docdeploy

* Avoid hitting arviz bug

See arviz-devs/arviz#1401

* Fix examples for updated radon dataset

See arviz-devs/arviz#1320, included in arviz v0.10.0

* Update all seeds

* Rename example
  • Loading branch information
sethaxen authored Oct 1, 2020
1 parent 8164ab7 commit 3b1ef94
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
tar -xzpf ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}.tar.gz -C ${{ env.CMDSTAN_PATH }}
make -C ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}/ build
shell: bash
- uses: julia-actions/julia-docdeploy@releases/v1
- uses: julia-actions/julia-docdeploy@v1
env:
JULIA_CMDSTAN_HOME: ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}/ # required by CmdStan.jl
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
9 changes: 4 additions & 5 deletions docs/src/mpl_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ gcf()
See [`plot_energy`](@ref)


## ESS Quantile Plot
## ESS Evolution Plot

```@example
using PyPlot
Expand Down Expand Up @@ -176,7 +176,7 @@ using ArviZ
ArviZ.use_style("arviz-darkgrid")
idata = load_arviz_data("radon")
plot_ess(idata; var_names = ["sigma_y"], kind = "quantile", color = "C4")
plot_ess(idata; var_names = ["sigma"], kind = "quantile", color = "C4")
gcf()
```
Expand Down Expand Up @@ -377,9 +377,8 @@ using ArviZ
ArviZ.use_style("arviz-darkgrid")
idata = load_arviz_data("radon")
log_like = transpose(idata.sample_stats.log_likelihood.sel(chain = 0).values)
log_weights = psislw(-log_like)[1]
plot_loo_pit(idata; y = "y_like", log_weights = log_weights, ecdf = true, color = "maroon")
plot_loo_pit(idata; y = "y", ecdf = true, color = "maroon")
gcf()
```
Expand Down
6 changes: 3 additions & 3 deletions docs/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ArviZ.jl is designed to be used with libraries like [CmdStan](https://github.com
```@example quickstart
using Random
rng = Random.MersenneTwister(42)
rng = Random.MersenneTwister(37772)
plot_posterior(randn(rng, 100_000));
gcf()
```
Expand Down Expand Up @@ -91,7 +91,7 @@ end
param_mod = turing_model(J, y, σ)
sampler = NUTS(nwarmup, 0.8)
rng = Random.MersenneTwister(5130)
rng = Random.MersenneTwister(16653)
turing_chns = sample(
rng,
param_mod,
Expand Down Expand Up @@ -207,7 +207,7 @@ stan_model = Stanmodel(
num_warmup = nwarmup,
num_samples = nsamples,
output_format = :mcmcchains,
random = CmdStan.Random(8675309),
random = CmdStan.Random(28983),
)
_, stan_chns, _ = stan(stan_model, schools_dat, summary = false);
Base.Filesystem.rm(stan_model.tmpdir; recursive = true, force = true); # hide
Expand Down
2 changes: 1 addition & 1 deletion test/test_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ using PyCall, PyPlot
f((x = arr1, y = arr2); var_names = ["x", "y"])
close(gcf())
ispynull(ArviZ.bokeh) || @testset "bokeh" begin
@test f([(x = arr1,), (x = arr2,)]; var_names = ["x"], backend = :bokeh) isa
@test f((x = arr1, y = arr2); var_names = ["x", "y"], backend = :bokeh) isa
ArviZ.BokehPlot
end
end
Expand Down

0 comments on commit 3b1ef94

Please sign in to comment.