Skip to content

Conversation

@yebai
Copy link
Member

@yebai yebai commented Jan 25, 2022

Replacement of #1757. Awaiting for a new Libtask release before merging.

yebai and others added 2 commits January 24, 2022 21:43
* Update Project.toml

* Update Project.toml

* Update Project.toml

* trace down into functions calling produce

* trace into functions in testcases

* update to the latest version

* run tests against new libtask

* temporarily disable 1.3 for testing

* Update AdvancedSMC.jl

* Update AdvancedSMC.jl

* Update AdvancedSMC.jl

* Update AdvancedSMC.jl

* Update AdvancedSMC.jl

* copy Trace on tape

* Implement simplified evaluator for TracedModel

* Remove some unnecessary trace functions.

* Minor bugfix in TracedModel evaluator.

* Update .github/workflows/TuringCI.yml

* Minor bugfix in TracedModel evaluator.

* Update container.jl

* Update Project.toml

* Commented out tests related to control flow.  TuringLang/Libtask.jl/issues/96

* Commented out tests related to control flow.
TuringLang/Libtask.jl/issues/96

* Update Project.toml

* Update src/essential/container.jl

* Update AdvancedSMC.jl

Co-authored-by: KDr2 <[email protected]>
…kage test, (keep existing compat) (#1765)

Co-authored-by: CompatHelper Julia <[email protected]>
@yebai yebai force-pushed the libtask-integration branch 2 times, most recently from 47d4b4a to b9f180a Compare January 25, 2022 17:30
@yebai yebai force-pushed the libtask-integration branch 3 times, most recently from afe6b5d to f87f455 Compare January 26, 2022 14:17
* fixed dot_assume for hmc

* copy-pasted tests from dynamicppl integration tests

* inspecting what in the world is going on with tests

* trying again

* skip failing test for TrackerAD

* bump patch version

* fixed typo in tests

* Rename `Turing.Core` to `Turing.Essential`

* Deprecate Turing.Core

Co-authored-by: Tor Erlend Fjelde <[email protected]>

* fixed a numerical test

* version bump

Co-authored-by: David Widmann <[email protected]>
Co-authored-by: David Widmann <[email protected]>
@yebai yebai force-pushed the libtask-integration branch from 0d84a5b to f82b3ea Compare January 26, 2022 14:30
@yebai yebai force-pushed the libtask-integration branch from 08a39de to 27a8d85 Compare January 26, 2022 20:28
@yebai
Copy link
Member Author

yebai commented Jan 26, 2022

With TuringLang/Libtask.jl#107, only one test is failing now!

distribution tests more robust.
@yebai yebai force-pushed the libtask-integration branch from 8063ce9 to 675f7cb Compare January 26, 2022 21:08
Co-authored-by: David Widmann <[email protected]>
@yebai
Copy link
Member Author

yebai commented Jan 27, 2022

A few tests are still failing for Julia 1.6 due to tight error bounds. The random seed that works for Julia 1.7 turns out not to work well for Julia 1.6. The results are pretty close but still erroring due to current tight error bounds. Maybe we should relax the error threshold for the sensitive tests or increase the number of samples (which leads to a longer CI time). Note these falling tests are mostly related to gradient-based samplers, which is independent of changes in this PR.

@devmotion
Copy link
Member

Maybe we could use StableRNGs? There was a major change of the RNG in 1.7, and generally random numbers are not guaranteed to be reproducible with different Julia versions, OS, or architectures.

@yebai yebai force-pushed the libtask-integration branch from e71cff3 to b20224d Compare January 30, 2022 17:30
@yebai yebai force-pushed the libtask-integration branch from b20224d to e63b5b2 Compare January 30, 2022 17:56
@yebai yebai force-pushed the libtask-integration branch from e63b5b2 to aa8cc6d Compare January 30, 2022 18:27
@yebai yebai force-pushed the libtask-integration branch 3 times, most recently from 1122a11 to 8bdb54b Compare January 30, 2022 21:20
@yebai yebai force-pushed the libtask-integration branch from 8bdb54b to 877e1fc Compare January 30, 2022 21:53
@codecov
Copy link

codecov bot commented Jan 31, 2022

Codecov Report

Merging #1766 (8f2ec45) into master (125b11c) will increase coverage by 0.03%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1766      +/-   ##
==========================================
+ Coverage   81.87%   81.90%   +0.03%     
==========================================
  Files          24       24              
  Lines        1473     1487      +14     
==========================================
+ Hits         1206     1218      +12     
- Misses        267      269       +2     
Impacted Files Coverage Δ
src/inference/AdvancedSMC.jl 94.30% <50.00%> (-3.18%) ⬇️
src/essential/container.jl 90.00% <100.00%> (+13.80%) ⬆️
src/inference/Inference.jl 84.67% <0.00%> (+0.12%) ⬆️

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 125b11c...8f2ec45. Read the comment docs.

@coveralls
Copy link

coveralls commented Jan 31, 2022

Pull Request Test Coverage Report for Build 1773535676

  • 12 of 15 (80.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.04%) to 81.91%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/inference/AdvancedSMC.jl 3 6 50.0%
Files with Coverage Reduction New Missed Lines %
src/inference/AdvancedSMC.jl 1 94.31%
Totals Coverage Status
Change from base Build 1752220370: 0.04%
Covered Lines: 1218
Relevant Lines: 1487

💛 - Coveralls

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.

4 participants