Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove resume_from #770

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Remove resume_from #770

wants to merge 1 commit into from

Conversation

penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented Jan 2, 2025

First step towards TuringLang/Turing.jl#2171.

This is another breaking change.

@penelopeysm penelopeysm marked this pull request as draft January 2, 2025 12:46
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.09%. Comparing base (003ff2f) to head (a0e6f32).

Files with missing lines Patch % Lines
src/sampler.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #770      +/-   ##
==========================================
- Coverage   86.13%   86.09%   -0.04%     
==========================================
  Files          36       36              
  Lines        4336     4338       +2     
==========================================
  Hits         3735     3735              
- Misses        601      603       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coveralls
Copy link

coveralls commented Jan 2, 2025

Pull Request Test Coverage Report for Build 12582651121

Details

  • 8 of 9 (88.89%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 86.025%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/sampler.jl 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
src/sampler.jl 1 91.23%
Totals Coverage Status
Change from base Build 12436748831: -0.1%
Covered Lines: 3718
Relevant Lines: 4322

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jan 2, 2025

Pull Request Test Coverage Report for Build 12672147706

Details

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • 30 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.04%) to 86.179%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/sampler.jl 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
src/sampler.jl 1 92.75%
src/varinfo.jl 3 84.92%
src/model.jl 5 77.39%
src/threadsafe.jl 21 46.61%
Totals Coverage Status
Change from base Build 12657521724: -0.04%
Covered Lines: 3735
Relevant Lines: 4334

💛 - Coveralls

@penelopeysm penelopeysm force-pushed the py/remove-resume-from branch from 899f8a3 to a0e6f32 Compare January 8, 2025 14:01
@penelopeysm penelopeysm marked this pull request as ready for review January 8, 2025 14:03
@penelopeysm
Copy link
Member Author

I don't actually how how to test this inside DynamicPPL, because save_state only works when called with the implementation of sample() in Turing.jl.

I suspect the whole implementation of bundle_samples (https://github.com/TuringLang/Turing.jl/blob/0c3d3d00705cd5e58623f96cc71a1999e0896809/src/mcmc/Inference.jl#L465-L525) needs to be upstreamed into DynamicPPL

@penelopeysm
Copy link
Member Author

Going to mark as draft again because I need to have a think about the right sequence of events here. In particular I'm wondering if we need to sort out the AbstractMCMC interface first

@penelopeysm penelopeysm marked this pull request as draft January 8, 2025 14:11
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.

2 participants