Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds TreePPL support via the
stdiointerface for non-Julian MCMC. TreePPL is a universal probabilistic programming language aimed at phylogeneticists.I've tried to follow the
BlangTargetclosely in implementing this bridge both here and on the TreePPL side, but tried to keep the API as slim as possible. The API gives access to all relevant flags in TreePPL via thetppl_compile_modelfunction. I have however deferred the installation to the TreePPL installation guide since installation of it along with all dependencies is too complicated to maintain here in my opinion.This PR depends on two PRs on the TreePPL side:
Miking CorePPL is a somewhat low level functional PPL that TreePPL compiles to. Both PRs are in the merge pipeline on the TreePPL/Miking side -- I thought I would keep this PR in a draft state until they are merged.
Note on sampling at temperature 0.0
Many models that are familiar in TreePPL contain hard constraints which means that there would be a discontinuity in the tempering path at temperature zero if we were to temper from the prior. Since I believe that this is not desired I have allowed two different options for sampling at temperature 0.0:
These option is controlled via the
use_global::Boolargument intppl_compile_modelfunction. Please let me know if you have any other suggestions for addressing this problem!