File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,15 @@ function AbstractMCMC.step(
192
192
end
193
193
194
194
"""
195
- is_symmetric_proposal(proposal)
196
-
195
+ is_symmetric_proposal(proposal)::Bool
196
+
197
+ Implementing this for a custom proposal will allow `AbstractMCMC.step` to avoid
198
+ computing the "Hastings" part of the Metropolis-Hasting log acceptance
199
+ probability (if the proposal is indeed symmetric). By default,
200
+ `is_symmetric_proposal(proposal)` returns `false`. The user is responsible for
201
+ determining whether a custom proposal distribution is indeed symmetric. As
202
+ noted in `MetropolisHastings`, `proposal` is a `Proposal`, `NamedTuple` of
203
+ `Proposal`, or `Array{Proposal}` in the shape of your data.
197
204
"""
198
205
is_symmetric_proposal (proposal) = false
199
206
You can’t perform that action at this time.
0 commit comments