File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ using DocumenterMermaid
13
13
using MCMCChains
14
14
15
15
# Doctest setup
16
- DocMeta. setdocmeta! (DynamicPPL, :DocTestSetup , :(using DynamicPPL, MCMCChains); recursive= true )
16
+ DocMeta. setdocmeta! (
17
+ DynamicPPL, :DocTestSetup , :(using DynamicPPL, MCMCChains); recursive= true
18
+ )
17
19
18
20
makedocs (;
19
21
sitename= " DynamicPPL" ,
Original file line number Diff line number Diff line change @@ -114,21 +114,21 @@ predict
114
114
115
115
The ` predict ` function has two main methods:
116
116
117
- 1 . For ` AbstractVector{<:AbstractVarInfo} ` - useful when you have a collection of ` VarInfo ` objects representing posterior samples.
118
- 2 . For ` MCMCChains.Chains ` - useful when you have posterior samples in the form of a ` Chains ` object from MCMCChains.jl.
117
+ 1 . For ` AbstractVector{<:AbstractVarInfo} ` - useful when you have a collection of ` VarInfo ` objects representing posterior samples.
118
+ 2 . For ` MCMCChains.Chains ` - useful when you have posterior samples in the form of a ` Chains ` object from MCMCChains.jl.
119
119
120
120
### Basic Usage
121
121
122
122
The typical workflow for posterior prediction involves:
123
123
124
- 1 . Fitting a model to observed data to obtain posterior samples
125
- 2 . Creating a new model instance with some variables marked as missing (unobserved)
126
- 3 . Using ` predict ` to generate samples for these missing variables based on the posterior parameter samples
124
+ 1 . Fitting a model to observed data to obtain posterior samples
125
+ 2 . Creating a new model instance with some variables marked as missing (unobserved)
126
+ 3 . Using ` predict ` to generate samples for these missing variables based on the posterior parameter samples
127
127
128
128
When using ` predict ` with ` MCMCChains.Chains ` , you can control which variables are included in the output with the ` include_all ` parameter:
129
129
130
- - ` include_all=false ` (default): Include only newly predicted variables
131
- - ` include_all=true ` : Include both parameters from the original chain and predicted variables
130
+ - ` include_all=false ` (default): Include only newly predicted variables
131
+ - ` include_all=true ` : Include both parameters from the original chain and predicted variables
132
132
133
133
## Models within models
134
134
You can’t perform that action at this time.
0 commit comments