Skip to content

Commit 1d52c13

Browse files
committed
Fix typo in run_ad docstring
1 parent 5742078 commit 1d52c13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test_utils/ad.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,16 @@ Everything else is optional, and can be categorised into several groups:
180180
parameters using the `params` keyword argument.
181181
182182
1. _Which type of logp is being calculated._
183+
183184
By default, `run_ad` evaluates the 'internal log joint density' of the model,
184185
i.e., the log joint density in the unconstrained space. Thus, for example, in
186+
185187
@model f() = x ~ LogNormal()
188+
186189
the internal log joint density is `logpdf(Normal(), log(x))`. This is the
187190
relevant log density for e.g. Hamiltonian Monte Carlo samplers and is therefore
188191
the most useful to test.
192+
189193
If you want the log joint density in the original model parameterisation, you
190194
can use `getlogjoint`. Likewise, if you want only the prior or likelihood,
191195
you can use `getlogprior` or `getloglikelihood`, respectively.

0 commit comments

Comments
 (0)