TuringLang / EllipticalSliceSampling.jl

Julia implementation of elliptical slice sampling.
https://turinglang.org/EllipticalSliceSampling.jl/
MIT License
13 stars 5 forks source link

Separate cache from model #13

Closed devmotion closed 3 years ago

devmotion commented 3 years ago

This PR reduces the API and removes all type-based computations. The cache is constructed in the first sampling step as part of the sampler state instead of as part of the model in advance.

Additionally, MCMCThreads and MCMCDistributed are re-exported and tested.

codecov[bot] commented 3 years ago

Codecov Report

Merging #13 (2a1ec68) into master (cc3a792) will increase coverage by 17.91%. The diff coverage is 89.65%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #13       +/-   ##
===========================================
+ Coverage   76.31%   94.23%   +17.91%     
===========================================
  Files           5        4        -1     
  Lines          76       52       -24     
===========================================
- Hits           58       49        -9     
+ Misses         18        3       -15     
Impacted Files Coverage Δ
src/EllipticalSliceSampling.jl 100.00% <ø> (ø)
src/interface.jl 80.00% <80.00%> (+80.00%) :arrow_up:
src/abstractmcmc.jl 100.00% <100.00%> (ø)
src/model.jl 100.00% <100.00%> (+29.16%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cc3a792...2a1ec68. Read the comment docs.