@@ -131,20 +131,19 @@ end
131
131
params,
132
132
) -> T
133
133
134
- Draw a sample from the joint distribution specified by `model` conditioned on the values in
135
- `params`.
134
+ Draw a sample from the predictive distribution specified by `model` with its parameters fixed to `params`.
136
135
137
136
The sample will be returned as format specified by `T`.
138
137
"""
139
- function StatsBase. predict (rand :: AbstractRNG , T:: Type , model:: AbstractProbabilisticProgram , params)
140
- return rand (rng, T, condition (model, params))
138
+ function StatsBase. predict (rng :: AbstractRNG , T:: Type , model:: AbstractProbabilisticProgram , params)
139
+ return rand (rng, T, fix (model, params))
141
140
end
142
141
function StatsBase. predict (T:: Type , model:: AbstractProbabilisticProgram , params)
143
142
return StatsBase. predict (Random. default_rng (), T, model, params)
144
143
end
145
144
function StatsBase. predict (model:: AbstractProbabilisticProgram , params)
146
145
return StatsBase. predict (NamedTuple, model, params)
147
146
end
148
- function StatsBase. predict (rng:: AbstractRNG , params)
147
+ function StatsBase. predict (rng:: AbstractRNG , T :: Type , model :: AbstractProbabilisticProgram , params)
149
148
return StatsBase. predict (rng, NamedTuple, model, params)
150
149
end
0 commit comments