TuringLang / AbstractMCMC.jl

Abstract types and interfaces for Markov chain Monte Carlo methods
https://turinglang.org/AbstractMCMC.jl
MIT License
78 stars 18 forks source link

Check if log density supports LogDensityProblems #111

Closed devmotion closed 1 year ago

devmotion commented 1 year ago

This PR proposes to check if the log density actually supports the LogDensityProblems interface when constructing a LogDensityModel.

Addresses https://github.com/TuringLang/AdvancedHMC.jl/pull/301#discussion_r1056947753.

codecov[bot] commented 1 year ago

Codecov Report

Base: 97.19% // Head: 95.51% // Decreases project coverage by -1.67% :warning:

Coverage data is based on head (ec80b2b) compared to base (18ea3f1). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #111 +/- ## ========================================== - Coverage 97.19% 95.51% -1.68% ========================================== Files 7 8 +1 Lines 285 290 +5 ========================================== Hits 277 277 - Misses 8 13 +5 ``` | [Impacted Files](https://codecov.io/gh/TuringLang/AbstractMCMC.jl/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TuringLang) | Coverage Δ | | |---|---|---| | [src/AbstractMCMC.jl](https://codecov.io/gh/TuringLang/AbstractMCMC.jl/pull/111/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TuringLang#diff-c3JjL0Fic3RyYWN0TUNNQy5qbA==) | `100.00% <ø> (ø)` | | | [src/logdensityproblems.jl](https://codecov.io/gh/TuringLang/AbstractMCMC.jl/pull/111/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TuringLang#diff-c3JjL2xvZ2RlbnNpdHlwcm9ibGVtcy5qbA==) | `0.00% <0.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TuringLang). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TuringLang)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.