Skip to content

Port TuringCallbacks to AbstractMCMC - #187

Merged
yebai merged 23 commits into
mainfrom
port-TuringCallbacks
Jan 15, 2026
Merged

Port TuringCallbacks to AbstractMCMC#187
yebai merged 23 commits into
mainfrom
port-TuringCallbacks

Conversation

@shravanngoswamii

Copy link
Copy Markdown
Member

This PR will deprecate TuringCallbacks.jl

@github-actions

Copy link
Copy Markdown
Contributor

AbstractMCMC.jl documentation for PR #187 is available at:
https://TuringLang.github.io/AbstractMCMC.jl/previews/PR187/

@shravanngoswamii
shravanngoswamii marked this pull request as draft December 30, 2025 16:18
@shravanngoswamii
shravanngoswamii marked this pull request as ready for review December 31, 2025 10:00

@yebai yebai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @shravanngoswamii -- let's refactor a bit further to export a single symbol mcmc_callback instead.

Comment thread Project.toml Outdated
Comment thread src/AbstractMCMC.jl Outdated
Comment thread src/AbstractMCMC.jl Outdated
Comment thread src/AbstractMCMC.jl Outdated
@shravanngoswamii
shravanngoswamii marked this pull request as draft January 5, 2026 13:58
@shravanngoswamii
shravanngoswamii marked this pull request as ready for review January 7, 2026 18:53
@shravanngoswamii
shravanngoswamii requested a review from yebai January 7, 2026 18:56
@shravanngoswamii

Copy link
Copy Markdown
Member Author

@yebai Let me know if you have further suggestions or changes!

@yebai yebai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's getting there -- a few more refactoring comments!

Comment thread src/callbacks.jl Outdated
Comment thread src/callbacks.jl Outdated
Comment thread src/callbacks.jl Outdated
Comment thread ext/AbstractMCMCTensorBoardLoggerExt.jl Outdated
Comment thread ext/AbstractMCMCTensorBoardLoggerExt.jl Outdated
@shravanngoswamii

Copy link
Copy Markdown
Member Author

Added stats=true / stats=:default shorthand for requesting default statistics. Only _names_and_values remains as the unified internal function, Backward-compatible functions (params_and_values, extras, hyperparams) are removed.

@yebai yebai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Excellent work -- I'm fully happy with this!

@penelopeysm can you also take a look?

@yebai
yebai requested a review from Copilot January 14, 2026 10:43
Comment thread src/callbacks.jl Outdated
Comment thread src/callbacks.jl Outdated
Comment thread src/callbacks.jl Outdated
Comment thread test/callbacks.jl Outdated
Comment thread src/callbacks.jl Outdated
@penelopeysm

Copy link
Copy Markdown
Contributor

@shravanngoswamii I realise that some of these design choices I'm commenting on might not be yours, but now is as good a time as any to clean them up!

Moved OnlineStats Wrappers section to a new location in the document and updated formatting.
@shravanngoswamii

Copy link
Copy Markdown
Member Author

I realise that some of these design choices I'm commenting on might not be yours, but now is as good a time as any to clean them up!

I did not make any new design choices other than suggested, so it's mostly all old TuringCallbacks. I agree that we should clean it up! Let's do it!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment thread test/callbacks.jl
Comment thread .github/workflows/CI.yml Outdated
Comment thread src/callbacks.jl Outdated
Comment thread Project.toml Outdated
@yebai
yebai merged commit a5c0633 into main Jan 15, 2026
15 checks passed
@yebai
yebai deleted the port-TuringCallbacks branch January 15, 2026 17:22
@yebai

yebai commented Jan 15, 2026

Copy link
Copy Markdown
Member

@shravanngoswamii @penelopeysm please feel free to make a new release.

@shravanngoswamii

Copy link
Copy Markdown
Member Author

please feel free to make a new release.

JuliaRegistries/General#146241

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