You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ These statements are rewritten by `@model` as calls of [internal functions](@ref
14
14
@model
15
15
```
16
16
17
-
One can nest models and call another model inside the model function with [`@submodel`](@ref) and [`@returned_quantities`](@ref).
17
+
One can nest models and call another model inside the model function with [`@submodel`](@ref) and [`@returned_quantities(model)`](@ref).
18
18
19
19
```@docs
20
20
@submodel
21
-
@returned_quantities
21
+
@returned_quantities(model)
22
22
```
23
23
24
24
In the context of nesting models, it's also useful to prefix the variables in sub-models to avoid variable names clashing:
@@ -125,10 +125,10 @@ It is possible to manually increase (or decrease) the accumulated log density fr
125
125
@addlogprob!
126
126
```
127
127
128
-
Return values of the model function for a collection of samples can be obtained with [`returned_quantities`](@ref).
128
+
Return values of the model function for a collection of samples can be obtained with [`@returned_quantities`](@ref).
129
129
130
130
```@docs
131
-
returned_quantities
131
+
@returned_quantities(model, input)
132
132
```
133
133
134
134
For a chain of samples, one can compute the pointwise log-likelihoods of each observed random variable with [`pointwise_loglikelihoods`](@ref). Similarly, the log-densities of the priors using
0 commit comments