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
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -152,12 +152,6 @@ In the context of including models within models, it's also useful to prefix the
152
152
DynamicPPL.prefix
153
153
```
154
154
155
-
Under the hood, [`to_submodel`](@ref) makes use of the following method to indicate that the model it's wrapping is a model over its return-values rather than something else
156
-
157
-
```@docs
158
-
returned(::Model)
159
-
```
160
-
161
155
## Utilities
162
156
163
157
It is possible to manually increase (or decrease) the accumulated log likelihood or prior from within a model function.
@@ -106,8 +21,8 @@ the model can be sampled from but not necessarily evaluated for its log density.
106
21
`left ~ right` such as [`condition`](@ref), will also not work with `to_submodel`.
107
22
108
23
!!! warning
109
-
To avoid variable names clashing between models, it is recommend leave argument `auto_prefix` equal to `true`.
110
-
If one does not use automatic prefixing, then it's recommended to use [`prefix(::Model, input)`](@ref) explicitly.
24
+
To avoid variable names clashing between models, it is recommended to leave the argument `auto_prefix` equal to `true`.
25
+
If one does not use automatic prefixing, then it's recommended to use [`prefix(::Model, input)`](@ref) explicitly, i.e. `to_submodel(prefix(model, @varname(my_prefix)))`
0 commit comments