@@ -81,14 +81,16 @@ The `MCMCSerial` algorithm allows users to sample serially, with no thread or pr
81
81
struct MCMCSerial <: AbstractMCMCEnsemble end
82
82
83
83
"""
84
- getparams(state[, logdensity_function])
84
+ getparams(model::AbstractModel, state)
85
+ getparams(state)
85
86
86
87
Retrieve the values of parameters from the sampler's `state` as a `Vector{<:Real}`.
87
88
"""
88
89
function getparams end
89
90
90
91
"""
91
- setparams!!(state, params[, logdensity_function])
92
+ setparams!!(model::AbstractModel, state, params)
93
+ setparams!!(state, params)
92
94
93
95
Set the values of parameters in the sampler's `state` from a `Vector{<:Real}`.
94
96
@@ -99,9 +101,8 @@ Although not enforced, it should hold that `setparams!!(state, getparams(state))
99
101
words, the sampler should implement a consistent transformation between its internal representation
100
102
and the vector representation of the parameter values.
101
103
102
- Sometimes, to maintain the consistency of the log density and parameter values, an optional
103
- `logdensity_function` can be provided. This is useful for samplers that need to evaluate the
104
- log density at the new parameter values.
104
+ Sometimes, to maintain the consistency of the log density and parameter values, a `model::AbstractModel`
105
+ should be provided. This is useful for samplers that need to evaluate the log density at the new parameter values.
105
106
"""
106
107
function setparams!! end
107
108
0 commit comments