Skip to content

Commit

Permalink
Update ext/DynamicPPLTestExt/sampler.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
penelopeysm and github-actions[bot] authored Nov 27, 2024
1 parent 124996e commit 3f72a46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/DynamicPPLTestExt/sampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
Return the mean of variable represented by `varname` in `chain`.
"""
DynamicPPL.TestUtils.marginal_mean_of_samples(chain, varname) = mean(Array(chain[Symbol(varname)]))
DynamicPPL.TestUtils.marginal_mean_of_samples(chain, varname) =
mean(Array(chain[Symbol(varname)]))

"""
test_sampler(models, sampler, args...; kwargs...)
Expand Down

0 comments on commit 3f72a46

Please sign in to comment.