Skip to content

Conversation

@penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented Nov 14, 2025

This PR uses fast evaluation where it can. MCMC sampling mostly works. There are a few outstanding problems:

  1. Chains no longer store an overall logevidence. I think that can be patched upstream in DynamicPPL, basically check if all the stats have a .logevidence field and if so, set the chain's logevidence to be the mean of that. This does feel a bit lame because the user should just be able to do the mean themselves, but I guess not doing this would be gratuitous breakage. The issue is that this works fine for SMC and PG (I think), but IS. Not sure how important IS is.

  2. Chains aren't consistent between :lp and :logjoint, because I messed this up: ParamsWithStats: lp or logjoint? DynamicPPL.jl#1140 So some samplers will have one and other samplers the other. This needs to be fixed upstream.

  3. I didn't update the optimisation interface. I think we should merge or reject Remove Optim.jl interface + minor tidying up of src/optimisation/Optimisation #2708 first.

@github-actions
Copy link
Contributor

Turing.jl documentation for PR #2715 is available at:
https://TuringLang.github.io/Turing.jl/previews/PR2715/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants