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

Diffrentiabilty of ExponentialFamily(ExponentialFamily.MvNormalMeanCovariance) logpdf #140

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

Nimrais
Copy link
Member

@Nimrais Nimrais commented Oct 13, 2023

In this PR, I've switched from using inv! and logdet in the LinearAlgebra package to cholinv_logdet, as the current implementation isn't differentiable with autograd. I've also added tests to verify the differentiability of the new implementation.

@Nimrais Nimrais requested a review from bvdmitri October 13, 2023 13:11
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e9d869a) 75.21% compared to head (c5864af) 75.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
- Coverage   75.21%   75.20%   -0.02%     
==========================================
  Files          42       42              
  Lines        3127     3125       -2     
==========================================
- Hits         2352     2350       -2     
  Misses        775      775              
Files Coverage Δ
src/distributions/normal_family/normal_family.jl 65.75% <100.00%> (-0.21%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Nimrais Nimrais self-assigned this Oct 16, 2023
@Nimrais Nimrais requested a review from ismailsenoz October 16, 2023 11:14
@Nimrais
Copy link
Member Author

Nimrais commented Oct 16, 2023

@ismailsenoz should we merge it?

@ismailsenoz
Copy link
Collaborator

Some of the checks didn't pass.

@Nimrais
Copy link
Member Author

Nimrais commented Oct 16, 2023

@ismailsenoz they are not passed because they were canceled.

@ismailsenoz ismailsenoz merged commit 31aac1b into main Oct 16, 2023
6 of 8 checks passed
@ismailsenoz ismailsenoz deleted the fix-mv-normal-logpdf-gradient branch October 16, 2023 20:37
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