Skip to content

Conversation

@YongchaoHuang
Copy link
Contributor

@YongchaoHuang YongchaoHuang commented Dec 7, 2022

extended methods for logprior, loglikelihood, logposterior for chains.

Close #450

@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
@TuringLang TuringLang deleted a comment from github-actions bot Dec 8, 2022
YongchaoHuang and others added 5 commits December 8, 2022 10:39
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@torfjelde
Copy link
Member

Just so I'm following here, what's the difference between this PR and #437 ?

@YongchaoHuang
Copy link
Contributor Author

Just so I'm following here, what's the difference between this PR and #437 ?

@torfjelde Thanks for following up. It's the same thing but this one is purely codes and aims to be the new API for logprior and logposterior. #437 is documentation. I really should only make one PR.
@devmotion made some very interesting comments in #437, which is linked to #166 and #170 I believe. @torfjelde Any suggestions on improving the functions here? Thanks ahead.

Copy link
Member

@yebai yebai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @YongchaoHuang -- I left some minor comments below. In addition, can you move all helper functions for tests to the beginning of the model.jl file.

Co-authored-by: Hong Ge <[email protected]>
@YongchaoHuang
Copy link
Contributor Author

YongchaoHuang commented Jul 4, 2023

thanks @YongchaoHuang -- I left some minor comments below. In addition, can you move all helper functions for tests to the beginning of the model.jl file.

Yes, all helper functions have been moved to test/test_utils.jl. Some of the helper functions can be removed in the future once #481 is merged.

YongchaoHuang and others added 3 commits July 6, 2023 16:41
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@YongchaoHuang
Copy link
Contributor Author

This PR depends on #481

@yebai
Copy link
Member

yebai commented Jul 21, 2023

@YongchaoHuang I have merged #481 into master. Do you want to remove your copy-and-pasted code so this PR can be merged?

@yebai
Copy link
Member

yebai commented Jul 21, 2023

If no one objects, I'll merge this PR in the next day or two.

@YongchaoHuang
Copy link
Contributor Author

@YongchaoHuang I have merged #481 into master. Do you want to remove your copy-and-pasted code so this PR can be merged?

Many thanks. I am looking into it now.

@YongchaoHuang
Copy link
Contributor Author

YongchaoHuang commented Jul 23, 2023

@torfjelde @yebai Maybe it's ready to merge?
Current failure with JuliaNightly is due to the overwriting of the rand method in Line 745 of src/test_utils.jl.

@yebai yebai enabled auto-merge July 24, 2023 13:46
@yebai yebai added this pull request to the merge queue Jul 24, 2023
@yebai
Copy link
Member

yebai commented Jul 24, 2023

Let's get this PR merged. The code is self-contained and only adds a new feature. Further improvements can be introduced via separate PRs. Thanks @YongchaoHuang for the work, and @torfjelde @devmotion for the reviews.

Merged via the queue into master with commit f6f02ac Jul 24, 2023
@yebai yebai deleted the yongchao/logp.jl branch July 24, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants