Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement pointwise_logpriors * implement varwise_logpriors * remove pointwise_logpriors * revert dot_assume to not explicitly resolve components of sum * docstring varwise_logpriores use loop for prior in example Unfortunately cannot make it a jldoctest, because relies on Turing for sampling * integrate pointwise_loglikelihoods and varwise_logpriors by pointwise_densities * record single prior components by forwarding dot_tilde_assume to tilde_assume * forward dot_tilde_assume to tilde_assume for Multivariate * avoid recording prior components on leaf-prior-context and avoid recording likelihoods when invoked with leaf-Likelihood context * undeprecate pointwise_loglikelihoods and implement pointwise_prior_logdensities mostly taken from #669 * drop vi instead of re-compute vi bgctw first forwared dot_tilde_assume to get a correct vi and then recomputed it for recording component prior densities. Replaced this by the Hack of torfjelde that completely drops vi and recombines the value, so that assume is called only once for each varName, * include docstrings of pointwise_logdensities pointwise_prior_logdensities int api.md docu * Update src/pointwise_logdensities.jl remove commented code Co-authored-by: Tor Erlend Fjelde <[email protected]> * Update src/pointwise_logdensities.jl remove commented code Co-authored-by: Tor Erlend Fjelde <[email protected]> * Update test/pointwise_logdensities.jl rename m to model Co-authored-by: Tor Erlend Fjelde <[email protected]> * Update test/pointwise_logdensities.jl remove unused code Co-authored-by: Tor Erlend Fjelde <[email protected]> * Update test/pointwise_logdensities.jl rename m to model Co-authored-by: Tor Erlend Fjelde <[email protected]> * Update test/pointwise_logdensities.jl rename m to model Co-authored-by: Tor Erlend Fjelde <[email protected]> * Update src/test_utils.jl remove old code Co-authored-by: Tor Erlend Fjelde <[email protected]> * rename m to model * JuliaFormatter * Update test/runtests.jl remove interactive code Co-authored-by: Tor Erlend Fjelde <[email protected]> * remove demo_dot_assume_matrix_dot_observe_matrix2 testcase testing higher dimensions better left for other PR * ignore local interactive development code * ignore temporary directory holding local interactive development code * Apply suggestions from code review: clean up comments and Imports Co-authored-by: Tor Erlend Fjelde <[email protected]> * Apply suggestions from code review: change test of applying to chains on already used model Co-authored-by: Tor Erlend Fjelde <[email protected]> * fix test on names in likelihood components to work with literal models * try to fix testset pointwise_logdensities chain * Update test/pointwise_logdensities.jl * Update .gitignore * Formtating * Fixed tests * Updated docs for `pointwise_logdensities` + made it a doctest not dependent on Turing.jl * Bump patch version * Remove blank line from `@model` in doctest to see if that fixes the parsing issues * Added doctest filter to handle the `;;]` at the end of lines for matrices --------- Co-authored-by: Tor Erlend Fjelde <[email protected]> Co-authored-by: Tor Erlend Fjelde <[email protected]>
- Loading branch information