@@ -124,9 +124,7 @@ function DynamicPPL.predict(
124124 iters = Iterators. product (1 : size (chain, 1 ), 1 : size (chain, 3 ))
125125 predictive_samples = map (iters) do (sample_idx, chain_idx)
126126 # 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)
130128 # Resample any variables that are not present in `values_dict`
131129 _, varinfo = last (
132130 DynamicPPL. init!! (
@@ -268,9 +266,7 @@ function DynamicPPL.returned(model::DynamicPPL.Model, chain_full::MCMCChains.Cha
268266 iters = Iterators. product (1 : size (chain, 1 ), 1 : size (chain, 3 ))
269267 return map (iters) do (sample_idx, chain_idx)
270268 # 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)
274270 # Resample any variables that are not present in `values_dict`, and
275271 # return the model's retval (`first`).
276272 first (
0 commit comments