Skip to content

Commit dc8dc1c

Browse files
authored
Implement AbstractMCMC.getstats (#471)
1 parent 52a7737 commit dc8dc1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AdvancedHMC"
22
uuid = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d"
3-
version = "0.8.2"
3+
version = "0.8.3"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
@@ -32,7 +32,7 @@ AdvancedHMCOrdinaryDiffEqExt = "OrdinaryDiffEq"
3232

3333
[compat]
3434
ADTypes = "1"
35-
AbstractMCMC = "5.6"
35+
AbstractMCMC = "5.9"
3636
ArgCheck = "1, 2"
3737
CUDA = "3, 4, 5"
3838
ComponentArrays = "0.15"

src/abstractmcmc.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ getintegrator(state::HMCState) = state.κ.τ.integrator
3333
function AbstractMCMC.getparams(state::HMCState)
3434
return state.transition.z.θ
3535
end
36+
AbstractMCMC.getstats(state::AdvancedHMC.HMCState) = state.transition.stat
3637

3738
function AbstractMCMC.setparams!!(
3839
model::AbstractMCMC.LogDensityModel, state::HMCState, params

0 commit comments

Comments
 (0)