-
Notifications
You must be signed in to change notification settings - Fork 32
Accumulators, stage 1 #885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
061acbe
Release 0.36
penelopeysm 1496868
Merge branch 'main' into breaking
penelopeysm 324e623
Merge branch 'main' into breaking
penelopeysm bb59885
Merge branch 'main' into breaking
penelopeysm fc32398
AbstractPPL 0.11 + change prefixing behaviour (#830)
penelopeysm cc5e581
Remove VarInfo(VarInfo, params) (#870)
penelopeysm b9c368b
Unify `{untyped,typed}_{vector_,}varinfo` constructor functions (#879)
penelopeysm 1b8f555
Merge remote-tracking branch 'origin/main' into breaking
mhauru ae9b1cd
Draft of accumulators
mhauru 4fb0bf4
Fix some variable names
mhauru e410f47
Merge remote-tracking branch 'origin/main' into breaking
penelopeysm 97788bd
Fix pointwise_logdensities, gut tilde_observe, remove resetlogp!!
mhauru 7fe03ec
Map rather than broadcast
mhauru 5ba3530
Merge remote-tracking branch 'origin/main' into breaking
penelopeysm d49f7be
Start documenting accumulators
mhauru 28bbf1c
Use Val{symbols} instead of AccTypes to index
mhauru a0ed665
More documentation for accumulators
mhauru be27636
Link varinfo by default in AD testing utilities; make test suite run …
penelopeysm e6453fe
Fix resetlogp!! and type stability for accumulators
mhauru c59400d
Fix type rigidity of LogProbs and NumProduce
mhauru 47033ce
Fix uses of getlogp and other assorted issues
mhauru 8b841c9
setaccs!! nicer interface and logdensity function fixes
mhauru 3ee3989
Revert back to calling the macro @addlogprob!
mhauru 13163f2
Remove a dead test
mhauru 37dd6dd
Clarify a comment
mhauru d7013b6
Implement split/combine for PointwiseLogdensityAccumulator
mhauru 40d4caa
Switch ThreadSafeVarInfo.accs_by_thread to be a tuple
mhauru ff5f2cb
Fix `condition` and `fix` in submodels (#892)
penelopeysm c68f1bb
Merge remote-tracking branch 'origin/main' into breaking
penelopeysm 13da08a
Revert ThreadSafeVarInfo back to Vectors and fix some AD type casting…
mhauru d52feec
Merge remote-tracking branch 'origin/breaking' into mhauru/custom-acc…
mhauru 221e797
Improve accumulator docs
mhauru 1dbcb2c
Add test/accumulators.jl
mhauru e1b70e0
Docs fixes
mhauru 3f195e5
Various small fixes
mhauru 68b974a
Make DynamicTransformation not use accumulators other than LogPrior
mhauru 2b405d9
Fix variable order and name of map_accumulator!!
mhauru 00cd304
Typo fixing
mhauru 6d1048d
Small improvement to ThreadSafeVarInfo
mhauru 4fef20f
Fix demo_dot_assume_observe_submodel prefixing
mhauru 905b874
Merge branch 'breaking' into mhauru/custom-accumulators
mhauru 557954a
Typo fixing
mhauru 6f702c9
Miscellaneous small fixes
mhauru f748775
HISTORY entry and more miscellanea
mhauru 5f4a532
Add more tests for accumulators
mhauru 31967fd
Improve accumulators docstrings
mhauru ad2f564
Fix a typo
mhauru 10b4f2f
Expand HISTORY entry
mhauru d2b670d
Add accumulators to API docs
mhauru 8241d12
Remove unexported functions from API docs
mhauru 7b7a3e2
Add NamedTuple methods for get/set/acclogp
mhauru 0b08237
Fix setlogp!! with single scalar to error
mhauru 2a4b874
Export AbstractAccumulator, fix a docs typo
mhauru c1e90f7
Apply suggestions from code review
mhauru cb1c6c6
Rename LogPrior -> LogPriorAccumulator, and Likelihood and NumProduce
mhauru 00ef0cf
Type bound log prob accumulators with T<:Real
mhauru 14f4788
Add @addlogprior! and @addloglikelihood!
mhauru c4ee4ec
Apply suggestions from code review
mhauru 7ad9450
Move default accumulators to default_accumulators.jl
mhauru c5e2a6b
Fix some tests
mhauru fb09acc
Introduce default_accumulators()
mhauru e324c9b
Go back to only having @addlogprob!
mhauru 6b7b9f8
Fix tilde_observe!! prefixing
mhauru 048178b
Fix default_accumulators internal type
mhauru 6437801
Make unflatten more type stable, and add a test for it
mhauru bf95169
Always print all benchmark results
mhauru efc7c53
Move NumProduce VI functions to abstract_varinfo.jl
mhauru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why we can't remove
tilde_assume
liketilde_observe
andobserve
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's on my list to do, but I didn't want to put in the same PR since I didn't have to. (I had to do
tilde_observe
because of complications withPointwiseLogdensityAccumulator
). Or, more precisely, what's on my list is to revisit the whole call stack for bothtilde_assume!!
andtilde_observe!!
and see what the best way to do things is.