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

[WIP] Move from implicitly mapped measures and kernels to data tagged as mapped #155

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

oschulz
Copy link
Collaborator

@oschulz oschulz commented Nov 9, 2024

No description provided.

@oschulz oschulz marked this pull request as draft November 9, 2024 21:51
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

Attention: Patch coverage is 71.01449% with 20 lines in your changes missing coverage. Please review.

Project coverage is 56.47%. Comparing base (3304a4e) to head (85fde05).

Files with missing lines Patch % Lines
src/combinators/transformedmeasure.jl 80.64% 6 Missing ⚠️
src/combinators/likelihood.jl 0.00% 4 Missing ⚠️
ext/MeasureBaseChainRulesCoreExt.jl 0.00% 3 Missing ⚠️
src/density-core.jl 80.00% 2 Missing ⚠️
src/combinators/product.jl 0.00% 1 Missing ⚠️
src/primitive.jl 50.00% 1 Missing ⚠️
src/primitives/counting.jl 66.66% 1 Missing ⚠️
src/primitives/dirac.jl 50.00% 1 Missing ⚠️
src/primitives/lebesgue.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
+ Coverage   56.32%   56.47%   +0.15%     
==========================================
  Files          44       44              
  Lines        1321     1351      +30     
==========================================
+ Hits          744      763      +19     
- Misses        577      588      +11     

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

Copy link

github-actions bot commented Nov 9, 2024

Package name latest stable
MeasureTheory.jl

Comment on lines +22 to +23
function strict_logdensityof(μ::Half, x)
ld = strict_logdensityof(unhalf(μ), x) - loghalf
Copy link
Collaborator

Choose a reason for hiding this comment

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

I need to have another look at this - should it just be logdensity_def?

If we need to merge before this is resolved, let's add a #TODO comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, this is part of specializing logdensityof (e242314) to avoid the multi-step logdensity_def machinery if users don't need logdensity_rel (until we revamp that machinery to make it more type-stable and Zygote-friendly).

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