@@ -124,9 +124,7 @@ function DynamicPPL.predict(
124
124
iters = Iterators. product (1 : size (chain, 1 ), 1 : size (chain, 3 ))
125
125
predictive_samples = map (iters) do (sample_idx, chain_idx)
126
126
# Extract values from the chain
127
- values_dict = DynamicPPL. chain_sample_to_varname_dict (
128
- parameter_only_chain, sample_idx, chain_idx
129
- )
127
+ values_dict = chain_sample_to_varname_dict (parameter_only_chain, sample_idx, chain_idx)
130
128
# Resample any variables that are not present in `values_dict`
131
129
_, varinfo = last (
132
130
DynamicPPL. init!! (
@@ -268,9 +266,7 @@ function DynamicPPL.returned(model::DynamicPPL.Model, chain_full::MCMCChains.Cha
268
266
iters = Iterators. product (1 : size (chain, 1 ), 1 : size (chain, 3 ))
269
267
return map (iters) do (sample_idx, chain_idx)
270
268
# Extract values from the chain
271
- values_dict = DynamicPPL. chain_sample_to_varname_dict (
272
- parameter_only_chain, sample_idx, chain_idx
273
- )
269
+ values_dict = chain_sample_to_varname_dict (chain, sample_idx, chain_idx)
274
270
# Resample any variables that are not present in `values_dict`, and
275
271
# return the model's retval (`first`).
276
272
first (
0 commit comments