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

CompatHelper: bump compat for "Distributions" to "0.24" #119

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 8, 2020

This pull request changes the compat entry for the Distributions package from 0.23.3 to 0.23.3, 0.24.

This keeps the compat entries for earlier versions.

Note: I have not tested your package with this new compat entry. It is your responsibility to make sure that your package tests pass before you merge this pull request.

@devmotion devmotion force-pushed the compathelper/new_version/2020-10-08-00-20-15-256-1076411718 branch from 03ef0b7 to 0a7f688 Compare October 8, 2020 00:20
@devmotion
Copy link
Member

Test errors are real and caused by the changes in Distributions 0.24.

@devmotion
Copy link
Member

@mohamed82008 Any idea what could cause the test errors of Skellam with ReverseDiff? I'm particularly confused since the univariate and matrixvariate tests of Skellam pass but the multivariate filldist/arraydist tests fail. Could it be due to the changes in Distributions 0.24? Or some changes in ReverseDiff?

@mohamed82008
Copy link
Member

Sorry I totally missed your comment here. I will take a look.

@devmotion
Copy link
Member

This PR is blocking other PRs (#122 and JuliaGaussianProcesses/AbstractGPs.jl#73) and contains fixes that block #120 (could be extracted to a separate PR though).

To resolve this situation, I marked the failing multivariate tests of Skellam with ReverseDiff as broken. I suggest to investigate and fix this issue separately later on since it seems it is still not clear what causes these new test failures.

@devmotion
Copy link
Member

Haha 🤣 In the mean time, the Skellam issue seems to be fixed due to some change upstream and JuliaStats/Distributions.jl#1198 breaks PoissonBinomial for Zygote.

@devmotion
Copy link
Member

Ah wait, it seems that only some of the Skellam tests in the multivariate case are broken...

@willtebbutt
Copy link
Member

Any progress on this @devmotion @mohamed82008? Keen to get this resolved for the sake of AbstractGPs

@devmotion
Copy link
Member

devmotion commented Nov 16, 2020

I'm just waiting for a review by @mohamed82008 (or someone else).

@mohamed82008
Copy link
Member

On it.

)
return sum(x -> logpdf(d, x), X)
# Only needed in Distributions < 0.24
if !DISTRIBUTIONS_HAS_GENERIC_UNIVARIATE_PDF
Copy link
Member

Choose a reason for hiding this comment

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

Why is this not needed? Please provide an explanation and a benchmark to make sure there is no regression especially for ReverseDiff and Zygote.

Copy link
Member

Choose a reason for hiding this comment

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

Because Distributions implements this now for any MatrixDistribution (as it should): https://github.com/JuliaStats/Distributions.jl/blob/ae2d6c5c68abc0aeafdc249ca60df058c19279cb/src/matrixvariates.jl#L225-L232

I don't think a benchmark is useful here since it is exactly the same implementation.

Copy link
Member

Choose a reason for hiding this comment

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

Can we just make this a check of the Distributions version?

Copy link
Member

Choose a reason for hiding this comment

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

AFAIK there's no official API or way to check the version of certain packages, that's why DISTRIBUTIONS_HAS_GENERIC_UNIVARIATE_PDF serves as a proxy (another example is https://github.com/TuringLang/Turing.jl/blob/beb440593b7a61f299a875abb84f3521fdbf3ada/src/Turing.jl#L61-L66).

@mohamed82008
Copy link
Member

Looks good to me in general. Just please address my minor comments above.

@devmotion
Copy link
Member

devmotion commented Nov 19, 2020

@mohamed82008 I don't think it is possible to address #119 (comment). The other comments I addressed and marked as resolved.

@mohamed82008
Copy link
Member

Great work @devmotion! Thanks for the PR.

@mohamed82008 mohamed82008 merged commit dcf9c3e into master Nov 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the compathelper/new_version/2020-10-08-00-20-15-256-1076411718 branch November 19, 2020 02:16
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.

3 participants