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 bug in reparameterization with Bijectors.TransformedDistribution #52

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

Red-Portal
Copy link
Member

Currently, Bijectors.TransformedDistribution results in an error when used with a single Monte Carlo sample. This patch fixes this and adds tests to detect this bug.

Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9ebfc3f) 85.92% compared to head (31db7bc) 86.36%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   85.92%   86.36%   +0.43%     
==========================================
  Files          11       11              
  Lines         199      198       -1     
==========================================
  Hits          171      171              
+ Misses         28       27       -1     

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

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 @Red-Portal -- it looks good. I left a few minor comments below.

ext/AdvancedVIBijectorsExt.jl Outdated Show resolved Hide resolved
ext/AdvancedVIBijectorsExt.jl Outdated Show resolved Hide resolved
src/utils.jl Outdated Show resolved Hide resolved
ext/AdvancedVIBijectorsExt.jl Outdated Show resolved Hide resolved
@Red-Portal Red-Portal requested a review from yebai January 3, 2024 05:48
@yebai yebai merged commit 2f6dc4f into TuringLang:master Jan 3, 2024
8 checks passed
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