Skip to content

Conversation

@penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented Jun 2, 2025

  • Removes src/deprecated.jl, which contained no usable functionality, just some nice warnings for some very old AD backend manipulation utilities.

  • Removes src/essential either through deletion or by moving particle MCMC code to src/mcmc/particle_mcmc.jl, as described in Get rid of src/essential #2512

  • Fixed all the imports that needed to be changed as a result of that

  • Removes test/skipped which just contained a lot of dead code

  • Properly exports @addlogprob!, even if it was technically never exported, many people use it so I think we owe it to our users to make it part of the interface.

Closes #2512

@penelopeysm penelopeysm changed the base branch from main to breaking June 2, 2025 09:52
@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2025

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

@codecov
Copy link

codecov bot commented Jun 2, 2025

Codecov Report

Attention: Patch coverage is 90.62500% with 3 lines in your changes missing coverage. Please review.

Project coverage is 86.59%. Comparing base (d29f810) to head (aefdc3f).
Report is 1 commits behind head on breaking.

Files with missing lines Patch % Lines
src/mcmc/particle_mcmc.jl 90.62% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           breaking    #2574      +/-   ##
============================================
+ Coverage     85.86%   86.59%   +0.72%     
============================================
  Files            21       19       -2     
  Lines          1429     1417      -12     
============================================
  Hits           1227     1227              
+ Misses          202      190      -12     

☔ 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.

Copy link
Member

@sunxd3 sunxd3 left a comment

Choose a reason for hiding this comment

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

All look good to me

@sunxd3
Copy link
Member

sunxd3 commented Jun 3, 2025

Worth tagging @yebai for the export of @addlogprob!. I think this is the right way to go.

@penelopeysm penelopeysm requested a review from yebai June 3, 2025 10:11
@penelopeysm penelopeysm merged commit 5601b2d into breaking Jun 3, 2025
33 checks passed
@penelopeysm penelopeysm deleted the py/cleanup branch June 3, 2025 10:37
@yebai yebai mentioned this pull request Jun 4, 2025
penelopeysm added a commit that referenced this pull request Jun 5, 2025
* [skip ci] Bump minor version

* Clean up old code (#2574)

* Remove src/essential and deprecated function stubs

* Fix imports

* Export `@addlogprob!`

* Fix more tests

* Clean up more stuff

* Update to the [email protected] interface (#2506)

* update to match the [email protected] interface

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* remove plotting

* fix formatting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix formatting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix formatting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* remove unused dependency

* Update Project.toml

* fix make some arugments of vi initializer to be optional kwargs

* remove tests for custom optimizers

* remove unused file

* Update src/variational/bijectors.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update Turing.jl

* fix remove call to `AdvancedVI.turnprogress`, which has been removed

* apply comments from @yebai

* Update src/variational/VariationalInference.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* add old interface as deprecated

* bump AdvancedVI version

* add deprecation for `meanfield`

* add `default_rng` interfaces

* add tests for variational inference

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* remove "src/variational/bijectors.jl" (moved to `DynamicPPL.jl`)

* add more tests for variational inference initializer

* remove non-essential reexports, fix tests

* run formatter, rename functions

* add documentation

* fix run formatter

* fix remove debug commits

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* run formatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* add Variational submodule

* fix docstring style

* update docstring style

* format docstring style

* fix typo

Co-authored-by: Penelope Yong <[email protected]>

* fix use fixed seed with StableRNGs

* fix export variational families

* fix forma

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* update changelog for advancedvi 0.4

* fix version number

* Format & add some links

* fix formatting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hong Ge <[email protected]>
Co-authored-by: Penelope Yong <[email protected]>

* [no ci] fix changelog

---------

Co-authored-by: Kyurae Kim <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hong Ge <[email protected]>
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.

Get rid of src/essential

4 participants