Skip to content

Commit

Permalink
Merge pull request #2 from Red-Portal/main
Browse files Browse the repository at this point in the history
Add window size check for univariate slice samplers
  • Loading branch information
Red-Portal authored May 25, 2024
2 parents 7969ff1 + d7f97b9 commit 3eeb23d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SliceSampling"
uuid = "43f4d3e8-9711-4a8c-bd1b-03ac73a255cf"
version = "0.2.0"
version = "0.2.1"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand Down
1 change: 1 addition & 0 deletions src/gibbs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function AbstractMCMC.step(
end
ℓp = state.transition.lp
θ = copy(state.transition.params)
@assert length(w) == length(θ) "window size does not match parameter size"

total_props = 0
for idx in shuffle(rng, 1:length(θ))
Expand Down

0 comments on commit 3eeb23d

Please sign in to comment.