Skip to content

Remove unnecessary hacks in Gibbs interface#2811

Merged
penelopeysm merged 4 commits into
breakingfrom
py/gibbs2
Apr 22, 2026
Merged

Remove unnecessary hacks in Gibbs interface#2811
penelopeysm merged 4 commits into
breakingfrom
py/gibbs2

Conversation

@penelopeysm
Copy link
Copy Markdown
Member

No description provided.

@penelopeysm penelopeysm changed the base branch from main to breaking April 22, 2026 09:35
Comment thread src/mcmc/hmc.jl
Comment on lines -24 to -31
# TODO(penelopeysm): This field is needed for Gibbs because each time we call
# gibbs_update_state!! on this, we need to reconstruct a LogDensityFunction.
# In general this would require reevaluating the model, unless we supply a
# VarNamedTuple which already contains vectorised parameters. This can probably
# be improved in DynamicPPL, but for now we will just store an extra VNT in
# the state.
# NOTE: The actual values of this field should never be used or relied on!
_vector_vnt::V
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

basically this PR is just getting rid of this field which should not need to exist

@github-actions
Copy link
Copy Markdown
Contributor

Turing.jl documentation for PR #2811 is available at:
https://TuringLang.github.io/Turing.jl/previews/PR2811/

@penelopeysm
Copy link
Copy Markdown
Member Author

Once this passes, I'll release 0.44.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.23%. Comparing base (47bf4eb) to head (41127e3).
⚠️ Report is 1 commits behind head on breaking.

Additional details and impacted files
@@             Coverage Diff              @@
##           breaking    #2811      +/-   ##
============================================
- Coverage     85.33%   85.23%   -0.10%     
============================================
  Files            22       22              
  Lines          1493     1483      -10     
============================================
- Hits           1274     1264      -10     
  Misses          219      219              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@penelopeysm penelopeysm merged commit af73c7f into breaking Apr 22, 2026
30 checks passed
@penelopeysm penelopeysm deleted the py/gibbs2 branch April 22, 2026 11:19
@penelopeysm penelopeysm mentioned this pull request Apr 22, 2026
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.

1 participant