Skip to content

Conversation

@devmotion
Copy link
Member

@devmotion devmotion commented May 15, 2020

This PR fixes TuringLang/Turing.jl#1260.

TODO:

  • Add tests
  • Copy changes in test folder to Turing
    - [ ] Fix documentation

@codecov
Copy link

codecov bot commented May 15, 2020

Codecov Report

Merging #120 into master will decrease coverage by 0.08%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   74.83%   74.75%   -0.09%     
==========================================
  Files          14       14              
  Lines         906      907       +1     
==========================================
  Hits          678      678              
- Misses        228      229       +1     
Impacted Files Coverage Δ
src/compiler.jl 87.82% <ø> (ø)
src/utils.jl 53.19% <25.00%> (ø)
src/sampler.jl 58.82% <50.00%> (ø)
src/context_implementations.jl 55.63% <66.66%> (ø)
src/model.jl 80.00% <83.33%> (+0.58%) ⬆️
src/distribution_wrappers.jl 53.33% <100.00%> (ø)
src/contexts.jl 66.66% <0.00%> (-16.67%) ⬇️

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 f74e039...83737ba. Read the comment docs.

@devmotion
Copy link
Member Author

Turing is updated (with additional tests) in https://github.com/devmotion/Turing.jl/tree/rng, all tests pass locally.

@devmotion devmotion marked this pull request as ready for review May 17, 2020 17:15
@devmotion
Copy link
Member Author

I think this is good to go, I noticed that the compiler docs in Turing are completely outdated (most parts are incorrect currently), so I don't think it's useful to just add a section about RNGs.

@devmotion devmotion requested a review from mohamed82008 May 18, 2020 14:33
Copy link
Contributor

@mohamed82008 mohamed82008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I just added one comment.

Co-authored-by: Mohamed Tarek <mohamed82008@gmail.com>
Copy link
Contributor

@mohamed82008 mohamed82008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Great PR @devmotion!

@devmotion
Copy link
Member Author

bors r+

@bors bors bot merged commit a673228 into master May 20, 2020
@bors bors bot deleted the rng branch May 20, 2020 15:17
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.

Taking multi-threaded random number generation a bit more seriously

3 participants