File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ LinearAlgebra = "1.6"
68
68
LogDensityProblems = " 2"
69
69
MCMCChains = " 6, 7"
70
70
MacroTools = " 0.5.6"
71
- MarginalLogDensities = " 0.4.1 "
71
+ MarginalLogDensities = " 0.4.3 "
72
72
Mooncake = " 0.4.147"
73
73
OrderedCollections = " 1"
74
74
Printf = " 1.10"
Original file line number Diff line number Diff line change @@ -195,9 +195,10 @@ function DynamicPPL.VarInfo(
195
195
)
196
196
# Extract the original VarInfo. Its contents will in general be junk.
197
197
original_vi = mld. logdensity. logdensity. varinfo
198
- # `mld.u` will contain the modes for any marginalized parameters
199
- full_params = mld. u
200
- # We can then set the values for any non-marginalized parameters
198
+ # Extract the stored parameters, which includes the modes for any marginalized
199
+ # parameters
200
+ full_params = MarginalLogDensities. cached_params (mld)
201
+ # We can then (if needed) set the values for any non-marginalized parameters
201
202
if unmarginalized_params != = nothing
202
203
full_params[MarginalLogDensities. ijoint (mld)] = unmarginalized_params
203
204
end
You can’t perform that action at this time.
0 commit comments