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

Add implicitly mapped measures and kernels #153

Merged
merged 18 commits into from
Nov 4, 2024
Merged

Add implicitly mapped measures and kernels #153

merged 18 commits into from
Nov 4, 2024

Conversation

oschulz
Copy link
Collaborator

@oschulz oschulz commented Nov 3, 2024

Also:

  • Rename TransformVolCorr and subtypes (with backward compatibility).
  • Improved pushforward measure implementation.
  • Improve type stability of logdensityof for primitve, standard and combinator measures.

Copy link

codecov bot commented Nov 3, 2024

Codecov Report

Attention: Patch coverage is 77.27273% with 45 lines in your changes missing coverage. Please review.

Project coverage is 56.32%. Comparing base (8e496b8) to head (3304a4e).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
ext/MeasureBaseChainRulesCoreExt.jl 28.57% 15 Missing ⚠️
src/utils.jl 36.36% 7 Missing ⚠️
src/combinators/transformedmeasure.jl 88.67% 6 Missing ⚠️
src/combinators/implicitlymapped.jl 89.74% 4 Missing ⚠️
src/combinators/power.jl 60.00% 4 Missing ⚠️
src/combinators/product.jl 80.00% 2 Missing ⚠️
src/primitives/dirac.jl 66.66% 2 Missing ⚠️
src/combinators/spikemixture.jl 87.50% 1 Missing ⚠️
src/primitive.jl 50.00% 1 Missing ⚠️
src/primitives/counting.jl 80.00% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
+ Coverage   54.17%   56.32%   +2.14%     
==========================================
  Files          42       44       +2     
  Lines        1209     1321     +112     
==========================================
+ Hits          655      744      +89     
- Misses        554      577      +23     

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

@oschulz oschulz force-pushed the implicit-maps branch 2 times, most recently from d6fe43e to e5b8af3 Compare November 4, 2024 08:37
@oschulz
Copy link
Collaborator Author

oschulz commented Nov 4, 2024

Rebased PR, moved reformats into topical commit for better history, no change in total diff.

@oschulz oschulz force-pushed the implicit-maps branch 3 times, most recently from 5e51e56 to c2ed86a Compare November 4, 2024 09:35
@oschulz
Copy link
Collaborator Author

oschulz commented Nov 4, 2024

Require Julia v1.10 and added ChainRulesCore extension, so new rrules in this PR can go into the right place directly.

@oschulz oschulz force-pushed the implicit-maps branch 2 times, most recently from 113196a to 500ed55 Compare November 4, 2024 09:43
@oschulz oschulz mentioned this pull request Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

@oschulz
Copy link
Collaborator Author

oschulz commented Nov 4, 2024

Yay, tests all green now. :-)

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

oschulz and others added 14 commits November 4, 2024 20:28
While the load time of StaticArrays is rather high, be we can't
take advantage of statically known measure sizes without
a direct dependency on it.

With StaticArrays we'll be able to handle many low-dimension problems without
any heap allocations in the future.
PropertyFunctions provides a good base to handle marginalization.
We need maximum performance for these.
We need maximum performance on these.

Also try to preserve floating point types as far as possible.
Improves type stability and numerical type propagation.
Specialize logdensityof until a full refactor of the density engine.
Rename TransformVolCorr and subtypes (with backward compatibility).
Ensures proper type propagation (until future refactor of density calculation
engine).
Copy link

github-actions bot commented Nov 4, 2024

Package name latest stable
MeasureTheory.jl

@oschulz oschulz merged commit 3304a4e into main Nov 4, 2024
12 checks passed
@oschulz oschulz deleted the implicit-maps branch November 4, 2024 19:38
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