-
Notifications
You must be signed in to change notification settings - Fork 37
log probability interface for post-inference analysis #438
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
225 commits
Select commit
Hold shift + click to select a range
8a4b894
extended methods for `logprior`, `loglikelihood`, `logposterior` for …
YongchaoHuang 7fcebc5
accept Github Actions.
YongchaoHuang 63d1970
Update src/logp.jl
YongchaoHuang 3cc4912
Update src/logp.jl
YongchaoHuang 0df18e0
Update src/logp.jl
YongchaoHuang 390265d
Update src/logp.jl
YongchaoHuang ee329a2
Update src/logp.jl
YongchaoHuang e7bb1b8
typed `AbstractChains`;
YongchaoHuang f6ec7e0
re-formatting.
YongchaoHuang d7fa16f
removed comments to pass formatting test.
YongchaoHuang 5e1b144
Update src/logp.jl
YongchaoHuang 4b114de
Update src/logp.jl
YongchaoHuang 1ca088d
Update src/logp.jl
YongchaoHuang be54a5a
1. removed the import statements in `lop.jl`;
YongchaoHuang aa47024
Update src/logp.jl
YongchaoHuang 18a8831
Update src/logp.jl
YongchaoHuang 063eed0
Update src/logp.jl
YongchaoHuang d29f80d
Update src/logp.jl
YongchaoHuang 0e773ab
Update src/logp.jl
YongchaoHuang efd0c87
Update src/logp.jl
YongchaoHuang 075ac81
modified src/logp.jl; added test/logp.jl
YongchaoHuang 17aee2b
Update src/logp.jl
YongchaoHuang d1add25
Update src/logp.jl
YongchaoHuang 9623302
Update src/logp.jl
YongchaoHuang d31a7c3
Update src/logp.jl
YongchaoHuang 374cfde
Update test/logp.jl
YongchaoHuang 94c3864
Modified Docstrings;
YongchaoHuang 35683c7
Update src/logp.jl
YongchaoHuang 189550c
Update src/logp.jl
YongchaoHuang 20ac6c0
Update src/logp.jl
YongchaoHuang 5303e6f
Update src/logp.jl
YongchaoHuang 34e9383
renamed `chain_logprior`,`chain_loglikelihood',`chain_logposterior' t…
YongchaoHuang 3a86ff0
Merge branch 'master' into yongchao/logp.jl
YongchaoHuang db984b3
added `include("logdensityfunction.jl")` to `DynamicPPL.jl`
YongchaoHuang 417d3d0
formatted `test/logp.jl`.
YongchaoHuang 94d981b
Update test/logp.jl
YongchaoHuang d3b8d5a
Update test/logp.jl
YongchaoHuang 254544d
formatted `scr/logp.jl`.
YongchaoHuang 58cf492
Update src/logp.jl
YongchaoHuang 7050e0b
Update src/logp.jl
YongchaoHuang 51b3c49
Update src/logp.jl
YongchaoHuang 6070637
Update src/logp.jl
YongchaoHuang 9137dc8
Update src/logp.jl
YongchaoHuang ee04a46
Update src/logp.jl
YongchaoHuang 6138b25
Update src/logp.jl
YongchaoHuang c1e9d09
Update src/logp.jl
YongchaoHuang 60d4e2c
Update src/logp.jl
YongchaoHuang c54ddd5
formatted `scr/logp.jl`.
YongchaoHuang f91c4ea
Removed comments.
YongchaoHuang 78cc213
Update src/logp.jl
YongchaoHuang ef2110e
Update src/logp.jl
YongchaoHuang 262b6c2
Update src/logp.jl
YongchaoHuang 63e486a
Update src/logp.jl
YongchaoHuang 6d9a884
Update src/logp.jl
YongchaoHuang 3e954be
Update src/logp.jl
YongchaoHuang 7ebcf10
Update test/logp.jl
YongchaoHuang ee82b65
removed redundant methods (NamedTuples and Array inputs).
YongchaoHuang 9adb6e7
added REPL examples to docstrings.
YongchaoHuang 68d76ae
Update src/logp.jl
YongchaoHuang 3244d2f
Update src/logp.jl
YongchaoHuang 4a28c2a
added `start_idx` into `src/logp.jl`; rewrite `test/logp.jl` using `m…
YongchaoHuang 96bfbf1
added `start_idx` to the 3 methods.
YongchaoHuang 8b75a8c
Reduced chainn size in the docstrings example.
YongchaoHuang 97d4e94
applied formatting.
YongchaoHuang cfc76d2
Update src/logp.jl
YongchaoHuang 5217a91
Update src/logp.jl
YongchaoHuang f426418
Update test/logp.jl
YongchaoHuang ac939ae
Update test/logp.jl
YongchaoHuang 9e383da
Update test/logp.jl
YongchaoHuang ee0b63d
Update src/logp.jl
YongchaoHuang d4706b5
Update src/logp.jl
YongchaoHuang 398e0d2
Update src/logp.jl
YongchaoHuang 3b95070
Update src/logp.jl
YongchaoHuang dc8808b
upated signatures in docstrings.
YongchaoHuang 5c05964
applied formatting.
YongchaoHuang 8f40c13
formatted again.
YongchaoHuang e8e813c
Update src/logp.jl
YongchaoHuang af6571d
Update src/logp.jl
YongchaoHuang 8799426
Update src/logp.jl
YongchaoHuang 05ae602
fix doctests setup
yebai a604da9
Update docs/make.jl
YongchaoHuang abb83fd
Update test/runtests.jl
YongchaoHuang 8ce9422
applied formatting.
YongchaoHuang 560b96b
Formatting.
YongchaoHuang 49032dd
Update src/logp.jl
YongchaoHuang 303f931
Update src/logp.jl
YongchaoHuang e101303
Update src/logp.jl
YongchaoHuang 3a29f6f
Update src/logp.jl
YongchaoHuang e9e515f
Update src/logp.jl
YongchaoHuang 63596e2
Update src/logp.jl
YongchaoHuang 2c5ab9e
Fix doc tests again.
yebai 4c62f07
Fixed formatting.
yebai 9673f1a
Merged `logp.jl` into `model.jl`
yebai ef85267
CompatHelper: bump compat for Turing to 0.24 for package turing, (kee…
github-actions[bot] bbff92d
CompatHelper: bump compat for Turing to 0.23 for package turing, (kee…
github-actions[bot] 824dcb6
Fixed obsolete `TArray` reference.
yebai 97028a5
Fixed incorrect code.
yebai 895384e
More bugfixes in logp tests.
yebai 28fdf7d
Avoid calling Turing sampler.
yebai a456147
Apply suggestions from code review
yebai 45c0141
Replace SampleFromPrior with synthetic chain.
yebai e4558dd
Update test/model.jl
yebai d8a4d32
Minor bugfix.
yebai 5bf860b
Update src/model.jl
YongchaoHuang d63c185
Update src/model.jl
YongchaoHuang b9bae11
Update src/model.jl
YongchaoHuang 2d58d18
Update src/model.jl
YongchaoHuang a5fd292
Merge branch 'master' into yongchao/logp.jl
yebai a34d5e4
Update Project.toml
yebai 394967c
Update src/model.jl
YongchaoHuang 6c8d253
Update src/model.jl
YongchaoHuang a364e3b
Update src/model.jl
YongchaoHuang 1f16544
Update src/model.jl
YongchaoHuang 732a1ed
Update src/model.jl
YongchaoHuang b925158
Update src/model.jl
YongchaoHuang 5af2d52
Update src/model.jl
YongchaoHuang 364cfc7
Update src/model.jl
YongchaoHuang 8e9ee49
Update src/model.jl
YongchaoHuang d53a79d
Update src/model.jl
YongchaoHuang bf05924
Update src/model.jl
YongchaoHuang 376a604
Update src/model.jl
YongchaoHuang c4da915
Update src/model.jl
YongchaoHuang 221805b
Update src/model.jl
YongchaoHuang b7ebade
Update src/model.jl
YongchaoHuang e94f2f3
Update src/model.jl
YongchaoHuang 08c6dc7
Update src/model.jl
YongchaoHuang 01569fc
Update src/model.jl
YongchaoHuang 57a0671
Update src/model.jl
YongchaoHuang e74b0fe
Update src/model.jl
YongchaoHuang 13b9a7f
Update src/model.jl
YongchaoHuang 0abde5a
Update src/model.jl
YongchaoHuang 825a2d2
Update src/model.jl
YongchaoHuang 78e511b
Update src/model.jl
YongchaoHuang aea5fdf
Update src/model.jl
YongchaoHuang c544a06
Update src/model.jl
YongchaoHuang 9e3d260
Update src/model.jl
YongchaoHuang a0dbb13
Update src/model.jl
YongchaoHuang b06a374
Update src/model.jl
YongchaoHuang 33fb855
Update src/model.jl
YongchaoHuang f7f68b8
Update src/model.jl
YongchaoHuang bf95fb0
Update src/model.jl
YongchaoHuang 88662d1
Update src/model.jl
YongchaoHuang de3720f
Update src/model.jl
YongchaoHuang 7cf464d
Update src/model.jl
YongchaoHuang 94cff03
Update test/model.jl
YongchaoHuang a96fc43
Update src/model.jl
YongchaoHuang 322ad7b
Update src/model.jl
YongchaoHuang b46bb44
Update src/model.jl
YongchaoHuang c6bda2b
Update src/model.jl
YongchaoHuang f3c67b1
Added `logprior_true(model,NamedTuple)' and
YongchaoHuang 6e9639b
Update test/model.jl
YongchaoHuang 339ef0d
Apply suggestions from code review
YongchaoHuang 0984762
Fixed missing prefix and imports.
yebai 2df3e65
Move tests into convenience functions.
yebai 37c477c
Update test/model.jl
yebai a717419
Removed constraints on floating number precision.
yebai 8eeed1c
Fix type constraint again.
yebai f34dd29
Apply suggestions from code review
YongchaoHuang 4400f48
1. removed `StableRNGs`;
YongchaoHuang 9a6ff47
Merge branch 'master' into yongchao/logp.jl
yebai 33e5ee5
Bugfix.
yebai a5d3671
Import TestUtils -- it is not exported by DPPL.
yebai be2c2ed
Specialise on model type.
yebai 0a93a21
Improve test.
yebai 2f62fad
Update src/test_utils.jl
yebai 1a8fa89
Apply suggestions from code review
storopoli 6945b4e
Apply suggestions from code review
YongchaoHuang d36b9ca
Apply suggestions from code review
YongchaoHuang fd225a5
midified the way chain value was extracted in all 3 methods.
YongchaoHuang f28e5e1
Merge branch 'yongchao/logp.jl' of github.com:TuringLang/DynamicPPL.j…
YongchaoHuang c46cf56
Apply suggestions from code review
YongchaoHuang 6fc5738
Apply suggestions from code review
YongchaoHuang 585e896
Update src/model.jl
yebai 11bef7f
Update src/model.jl
yebai c6eb9c2
Update src/utils.jl
yebai 3249919
rewrote the tests (mainly the way extracting parameter values from ch…
YongchaoHuang 9f64941
removed BangBang from doctest setup; fixed imcomplete end in test/mod…
YongchaoHuang 2ea8de8
Apply suggestions from code review
YongchaoHuang 0ad2fc5
fixed a naming bug (argvals_mat_dict) in src/model.jl.
YongchaoHuang c3c7a6a
fixed a typo - missing `var_info`.
YongchaoHuang 3dbbdae
Update test/model.jl
YongchaoHuang 3c617d8
Apply suggestions from code review
YongchaoHuang bf86218
Apply suggestions from code review
YongchaoHuang a150215
Explicitly added `using Distributions` in doctests; Accepted suggesti…
YongchaoHuang 0bbf948
Apply suggestions from code review
YongchaoHuang ab624e3
Merge branch 'master' into yongchao/logp.jl
yebai 7b7f13c
rm unnecessary deps
yebai b6a6097
replace contains with subsumes.
yebai 276c76c
rm redundant deps in docs build script.
yebai c7717b0
Update test/model.jl
yebai 23e2ab1
Fix format.
yebai 84e01b9
Replaced `subsumes` by `contains`.
YongchaoHuang 1dd81f9
Update test/model.jl
YongchaoHuang 9b37927
replaced 'contains' by a new, temporary method 'subsumes_sym', just f…
YongchaoHuang da0f39c
Update test/model.jl
YongchaoHuang 0180426
Update test/model.jl
YongchaoHuang e015429
modified `/test/model.jl`:
YongchaoHuang b522358
Update test/model.jl
YongchaoHuang 32ee32f
Fixed a mistake in `modify_value_representation`.
YongchaoHuang c29554b
fixed `gdemo_default`
YongchaoHuang c6edb50
assigned `model=gdemo_default`.
YongchaoHuang 02b9a43
src/model.jl: added `DynamicPPL.` to `logprior` and `logjoint`.
YongchaoHuang 4e1f424
commented out `gdemo_d()` as a trial test.
YongchaoHuang 9a0404b
used `Symbol(vn_child)` as keys in `chain_sym_map`.
YongchaoHuang a8af236
Update test/model.jl
YongchaoHuang aa5737d
Merge branch 'master' into yongchao/logp.jl
YongchaoHuang c57f276
explicitly loaded `varname_leaves` and `values_from_chain`.
YongchaoHuang 02e3610
added `print` statements for temporary diagnosis purpose.
YongchaoHuang fa2fb6a
added 'print` statements for temporary diagnostics purpose.
YongchaoHuang 57585ff
Update test/model.jl
YongchaoHuang 80f23f9
diagnostics again.
YongchaoHuang 673fb6a
Removed some `print` statements as it's working.
YongchaoHuang e515943
Update test/model.jl
YongchaoHuang d4edf58
Update test/model.jl
YongchaoHuang 3e4770b
Update test/model.jl
YongchaoHuang 5565267
Update test/model.jl
YongchaoHuang 6e8c848
1. moved helper functions to `test_util.jl`; 2. re-wrote the way `cha…
YongchaoHuang e109bbf
Update test/model.jl
YongchaoHuang 6007a90
formatting.
YongchaoHuang 7617237
formatting.
YongchaoHuang 3b1d9e7
Merge branch 'master' into yongchao/logp.jl
yebai dbfc171
Update utils.jl
yebai 7c6888d
Update test_util.jl
yebai 1397dfc
Update Project.toml
yebai ac8d9e5
replaced 'varname_leaves' by 'DynamicPPL.varname_leaves'.
YongchaoHuang 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
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.
Uh oh!
There was an error while loading. Please reload this page.