flatironinstitute / bayes-kit

Bayesian inference and posterior analysis for Python
MIT License
41 stars 3 forks source link

Using LogPriorLikelihoodModel as subtype of LogDensityModel in SMC #33

Closed wrongu closed 1 year ago

wrongu commented 1 year ago

This just lets SMC use an interface consistent with other inference algorithms. Setting up a much larger upcoming PR proposing various Protocols and base classes.

codecov-commenter commented 1 year ago

Codecov Report

Merging #33 (11574d3) into main (5639c4c) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   97.86%   97.91%   +0.05%     
==========================================
  Files          11       11              
  Lines         281      288       +7     
==========================================
+ Hits          275      282       +7     
  Misses          6        6              
Impacted Files Coverage Δ
bayes_kit/model_types.py 100.00% <100.00%> (ø)
bayes_kit/smc.py 95.91% <100.00%> (+0.36%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more