Skip to content

Use SamplingOutput inside sample - #2914

Open
shravanngoswamii wants to merge 8 commits into
TuringLang:mainfrom
shravanngoswamii:sg/samplingoutput-internal
Open

shravanngoswamii wants to merge 8 commits into
TuringLang:mainfrom
shravanngoswamii:sg/samplingoutput-internal

Conversation

@shravanngoswamii

@shravanngoswamii shravanngoswamii commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Custom bundlers still receive the final sampler state with save_state=false.
The default return type remains VNChain.

using Turing, AbstractMCMC

@model demo() = x ~ Normal()
output = sample(demo(), Emcee(4), 10; chain_type=SamplingOutput)
size(output) # (10, 4)

@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.87179% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.01%. Comparing base (8d236b5) to head (bfd9d31).

Files with missing lines Patch % Lines
src/mcmc/abstractmcmc.jl 90.47% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2914      +/-   ##
==========================================
+ Coverage   89.94%   90.01%   +0.07%     
==========================================
  Files          21       21              
  Lines        1611     1643      +32     
==========================================
+ Hits         1449     1479      +30     
- Misses        162      164       +2     

☔ View full report in Codecov by Harness.
📢 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.

@shravanngoswamii
shravanngoswamii marked this pull request as ready for review November 8, 2026 11:35

This branch has not been deployed

No deployments
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