You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fixed some signatures for Model
* fixed a method call
* fixed method signatures
* sort of fixed the matchingvalue functionality for model
* formatting
* removed redundant _tilde method
* removed left-over acclogp! that should not be here anymore
* export SamplingContext
* use context instead of ctx to refer to contexts
* formatting
* use context instead of ctx for variables
* use context instead of ctx to refer to contexts
* Update src/compiler.jl
Co-authored-by: David Widmann <[email protected]>
* Update src/context_implementations.jl
Co-authored-by: David Widmann <[email protected]>
* Apply suggestions from code review
Co-authored-by: David Widmann <[email protected]>
* added some whitespace to some docstrings
* deprecated tilde and dot_tilde plus exported new versions
* formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* minor version bump
* added impl of matchingvalue for contexts
* reverted the change that makes assume always resample
* removed the inds arguments from assume and dot_assume to stay non-breaking
* Update src/context_implementations.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* added missing sampler arg to tilde_observe
* added missing sampler argument in dot_tilde_observe
* fixed order of arguments in some dot_assume calls
* formatting
* formatting
* added missing sampler argument in tilde_observe for SamplingContext
* added missing word in a docstring
* updated submodel macro
* removed unwrap_childcontext and related since its not needed for this PR
* updated submodel macro
* fixed evaluation implementations of dot_assume
* updated pointwise_loglikelihoods and related
* added proper tests for pointwise_loglikelihoods
* updated DPPL tests to reflect recent changes
* bump minor version since this will be breaking
* formatting
* formatting
* renamed mean_of_mean_models used in tests
* bumped dppl version in integration tests
* Apply suggestions from code review
Co-authored-by: David Widmann <[email protected]>
* Apply suggestions from code review
Co-authored-by: David Widmann <[email protected]>
* fixed ambiguity error
* Introduction of `SamplingContext`: keeping it simple (#259)
This is #253 but the only motivation here is to get `SamplingContext` in, nothing relating to interactions with other contexts, etc.
Co-authored-by: Hong Ge <[email protected]>
* Update src/DynamicPPL.jl
Co-authored-by: David Widmann <[email protected]>
* added initial impl of SimpleVarInfo
* remove unnecessary debug statements to be compat with Zygote
* make reconstruct slightly more generic
* added a couple of convenience constructors
* formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* small fix
* return var_info from tilde-statements, allowing impl of immutable versions
* allow usage of non-Ref types in SimpleVarInfo
* update submodel-macro
* formatting and docstring for submodel-macro
* attempt at supporting implicit returns too
* added a small comment
* simplifed submodel macro a bit
* formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fixed typo
* use bang-bang convention
* updated PointwiseLikelihoodContext
* fixed issue where we unnecessarily replace the return-statement
* check subtype in the retval
* formatting
* fixed type-instability in retval check
* introduced evaluate method for model
* remove unnecessary type-requirement
* make return-value check much nicer
* removed redundant creation of anonymous function
* dont use UnionAll in return_values
* updated tests for submodel to reflect new syntax
* moved to using BangBang-convention for most methods
* remove SimpleVarInfo from this branch
* added a comment
* reverted submodel macro to use = rather than ~
* updated SimpleVarInfo impl
* added a couple of missing deprecations
* updated tests
* updated implementations of logjoint and others
* formatting
* added eltype impl for SimpleVarInfo
* formatting
* fixed eltype for SimpleVarInfo
* implement setindex!! in prep for allowing sampling with immutable vi
* formatting
* initial work on allowing sampling using SimpleVarInfo
* formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add constructor for SimpleVarInfo using model
* improved leftover to_namedtuple_expr, fixing a bug when used with Zygote
* bumped patch version
* fixed set_flag!!
* forgot the return in the replace_returns
* bigboy update to benchmarks
* fixed some issues and added support for usage of Dict in SimpleVarInfo
* added docstring and improved indexing behvaior for SimpleVarInfo
* formatting
* dont allow sampling with indexing when using SimpleVarInfo with NamedTuple unless shapes are specified
* _setval_kernel and others are only supported by VarInfo atm
* fixed typo in comment
* added more values_as impls
* removed redundant values_from_metadata
* fixed bug in push!! for SimpleVarInfo
* forgot which branch Im on
* added handling of short defs in replace_returns and more docstrings
* fixed bug in generate_tilde introduced in a merge
* fixed a bug in isfuncdef
* fixed tests
* formatting
* uncomment mistakenly commented code
* bumped version
* updated doctests
* dont carry over bang-bang versions that we dont need for general varinfos
* Apply suggestions from @phipsgabler
Co-authored-by: Philipp Gabler <[email protected]>
* updated tests
* removed unnecessary BangBang methods
* fixed zygote rule for dot_observe
* fixed Setfield.jl + returning VarInfo bug in model-macro
* updated tests
* fixed docs
* formatting
* fixed issues when using ThreadSafeVarInfo
* fixed _pointwise_observe for ThreadSafeVarInfo
* updated ThreadSafeVarInfo
* made SimpleVarInfo compat with ThreadSafeVarInfo and added show
* added some tests for return-values of models
* formatting
* fixed doctest for SimpleVarInfo
* formatting
* removed comparison of show from doctest for SimpleVarInfo
* Update src/compiler.jl
Co-authored-by: David Widmann <[email protected]>
* Apply suggestions from code review
Co-authored-by: David Widmann <[email protected]>
* removed OrderedCollections from docs
* some additional fixes
* fixed method ambiguity and some ill-defined map
* renamed evaluate to evaluate!!
* added implementations of haskey, getindex and setindex!! for SimpleVarInfo
* formatting
* dropped redundant definition
* use getproperty instead of getindex
* fixed method-ambiguity and added some comments
* fixed docstring of SimpleVarInfo
* fixed docstrings
* fixed Project.toml for docs
* fixed docstring of canview
* fixed docstrings
* another attempt at fixing docstrings
* added a TODO comment
* remove some output from docstring of SimpleVarInfo
* fixed haskey and hasvalue for AbstractDict
* updated some comments
* updated some errors
* added sampling dot_assume for SimpleVarInfo
* added true versions of density computations to TestUtils
* added tests specific for SimpleVarInfo
* also document TestUtils
* added TestUtils to docs
* fixed setindex!! for SimpleVarInfo using AbstractDict
* added more tests
* formatting
* dont use BangBang for setall!
* revert unnecessary changes to settrans!
* revert unnecessary changes to set_flag!
* revert some changes to docstrings
* fixed some comments and docstrings
* added more convenient logjoint, logprior, and loglikelihood methods
* removed unnecessary export
* fixed export
* use the Setfield impl of getindex, etc. as default and specialize on AbstractDict
* fixed docstrings of logjoint, etc.
* Apply suggestions from code review
Co-authored-by: Philipp Gabler <[email protected]>
* fixed docstring for model
* replaced return_values by capturing return-value from tilde-statements instead
* added some tests for return-value of model
* added broadcast_foreach
* Apply suggestions from @devmotion
Co-authored-by: David Widmann <[email protected]>
* remove broadcast_foreach for now
* some fixes to ThreadSafeVarInfo
* Apply suggestions from code review
Co-authored-by: David Widmann <[email protected]>
* fixed docstrings
* forgot qualification for set
* formatting
* added comment about why we cant use MacroTools.isdef
* remove unnecessary deprecation
* udpated some docstrings
* fixed more docstrings
* make overloads of BangBang methods qualified
* remove overloading of values and instead use values_as without the type specified
* Apply suggestions from code review
Co-authored-by: David Widmann <[email protected]>
* renamed hasvalue for SimpleVarInfo to _haskey
* revert changes from previous commit
* minor version bump
* fixed sampling with ThreadSafeVarInfo
* fixed setindex!! for ThreadSafeVarInfo
* fixed eltype for ThreadSafeVarInfo wrapping a SimpleVarInfo
* fixed a test
* relax atol in serialization tests a bit
* temporarily disable Julia 1.3
* relax atol for a prior check
* Improvements to `@submodel` in #309 (#348)
* added prefix keyword argument to submodel-macro
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* converted example in docs into test
* fixed docstring
* Apply suggestions from code review
Co-authored-by: Philipp Gabler <[email protected]>
* removed redundant prefix_submodel_context def and added another example to docstring
* fixed doctests
* attempt at fixing doctests
* another attempt at fixing doctests
* had a typo in docstring
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Philipp Gabler <[email protected]>
* fixed a test case using submodel
* improved docstring according to comments by @devmotion
Co-authored-by: David Widmann <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hong Ge <[email protected]>
Co-authored-by: Philipp Gabler <[email protected]>
0 commit comments