Skip to content
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

Fix simplex_logpdf for values outside of the support #173

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Conversation

devmotion
Copy link
Member

@devmotion devmotion commented Jun 2, 2021

This addresses #158 (at least partly, the differentials are not adjusted yet). I made these changes a while ago but forgot to open a PR.

In an ideal future we would just define the differentials (if needed) and remove the type and logpdf computation from DistributionsAD. But better we fix it as long as it exists 🙂

@devmotion
Copy link
Member Author

The relevant tests pass, the error are caused by SpecialFunctions and would be fixed by JuliaMath/SpecialFunctions.jl#325.

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, @devmotion - looks good to me!

@yebai yebai merged commit 2d0e7b7 into master Jun 3, 2021
@delete-merged-branch delete-merged-branch bot deleted the dw/dirichlet branch June 3, 2021 08:08
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.

2 participants