TuringLang / AbstractMCMC.jl

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

Add `discard_initial` keyword argument #47

Closed devmotion closed 4 years ago

devmotion commented 4 years ago

This PR fixes https://github.com/TuringLang/Turing.jl/issues/1379 by adding support for a keyword argument discard_initial to the default implementation of sample.

codecov[bot] commented 4 years ago

Codecov Report

Merging #47 into master will decrease coverage by 0.47%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
- Coverage   97.65%   97.18%   -0.48%     
==========================================
  Files           6        6              
  Lines         128      142      +14     
==========================================
+ Hits          125      138      +13     
- Misses          3        4       +1     
Impacted Files Coverage Δ
src/sample.jl 98.91% <100.00%> (-1.09%) :arrow_down:
src/transducer.jl 100.00% <0.00%> (ø)

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 e39ce22...9d0de7a. Read the comment docs.