From 909f6dc3a4d536835c08a90616c9fee4b87a2448 Mon Sep 17 00:00:00 2001 From: Rob J Goedman Date: Sat, 27 Apr 2024 11:47:34 -0400 Subject: [PATCH] Rel 4.4.1 --- .github/workflows/CI.yml | 18 +++++++++--------- Project.toml | 2 +- README.md | 2 +- src/quap.jl | 16 ---------------- 4 files changed, 11 insertions(+), 27 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b816040..c7c7ac8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ on: pull_request: env: - CMDSTAN: "/home/worker/cmdstan-2.33.0/" + CMDSTAN: "/home/worker/cmdstan-2.34.1/" jobs: test: @@ -41,17 +41,17 @@ jobs: OLDWD=`pwd` cd ~ pwd - wget https://github.com/stan-dev/cmdstan/releases/download/v2.33.0/cmdstan-2.33.0.tar.gz - tar -xzpf cmdstan-2.33.0.tar.gz + wget https://github.com/stan-dev/cmdstan/releases/download/v2.34.1/cmdstan-2.34.1.tar.gz + tar -xzpf cmdstan-2.34.1.tar.gz ls -lia . - ls -lia ./cmdstan-2.33.0 - ls -lia ./cmdstan-2.33.0/make - touch ./cmdstan-2.33.0/make/local - echo "STAN_THREADS=true" > ./cmdstan-2.33.0/make/local + ls -lia ./cmdstan-2.34.1 + ls -lia ./cmdstan-2.34.1/make + touch ./cmdstan-2.34.1/make/local + echo "STAN_THREADS=true" > ./cmdstan-2.34.1/make/local make -C $CMDSTAN build cd $OLDWD env: - CMDSTAN: "/home/runner/cmdstan-2.33.0/" + CMDSTAN: "/home/runner/cmdstan-2.34.1/" - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: @@ -70,7 +70,7 @@ jobs: - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest env: - CMDSTAN: "/home/runner/cmdstan-2.33.0/" + CMDSTAN: "/home/runner/cmdstan-2.34.1/" - uses: julia-actions/julia-processcoverage@v1 if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 - uses: codecov/codecov-action@v1 diff --git a/Project.toml b/Project.toml index da59d64..7fe4530 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ authors = ["Rob J Goedman "] name = "StanQuap" uuid = "e4723793-2808-4fc5-8a98-c57f4c160c53" -version = "4.4.0" +version = "4.4.1" [compat] CSV = "0.10" diff --git a/README.md b/README.md index 3524ddf..40de68f 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ pkg> add StanQuap.jl You need a working [Stan's cmdstan](https://mc-stan.org/users/interfaces/cmdstan.html) installation, the path of which you should specify either in `CMDSTAN` or `JULIA_CMDSTAN_HOME`, eg in your `~/.julia/config/startup.jl` have a line like ```julia # CmdStan setup -ENV["CMDSTAN"] = expanduser("~/src/cmdstan-2.28.2/") # replace with your path +ENV["CMDSTAN"] = expanduser("~/src/cmdstan-2.34.1/") # replace with your path ``` It is recommended that you start your Julia process with multiple worker processes to take advantage of parallel sampling, eg diff --git a/src/quap.jl b/src/quap.jl index df4ec0f..4f3874c 100644 --- a/src/quap.jl +++ b/src/quap.jl @@ -166,22 +166,6 @@ function sample(qr::QuapResult, count::Int)::DataFrame ]) end -#= -# Will be deprecated, use QuapResult object -function sample(qm::NamedTuple; nsamples=4000) - df = DataFrame() - p = Particles(nsamples, qm.distr) - for (indx, coef) in enumerate(qm.params) - if length(qm.params) == 1 - df[!, coef] = p.particles - else - df[!, coef] = p[indx].particles - end - end - df -end -=# - export QuapResult, stan_quap,