Releases: TuringLang/Turing.jl
v0.39.5
Turing v0.39.5
Fixed a bug where sampling with an externalsampler
would not set the log probability density inside the resulting chain.
Note that there are still potentially bugs with the log-Jacobian term not being correctly included.
A fix is being worked on.
Merged pull requests:
- Update logp in varinfo when external samplers are used (#2616) (@penelopeysm)
Closed issues:
- Gibbs sampler does not carry through log-prob from an external sampler (#2583)
v0.39.4
Turing v0.39.4
Bumped compatibility of AbstractPPL to include 0.12.
Merged pull requests:
- Modernise README (#2575) (@penelopeysm)
- Gibbs test | Fix dynamic model test in Gibbs sampler suite (#2579) (@AoifeHughes)
- Replace 2018 AISTATS conference paper with the latest 2025 ACM paper (#2608) (@sunxd3)
- Bump AbstractPPL to 0.12 (#2614) (@penelopeysm)
Closed issues:
- HMM example model with missing data yields Malformed dims error (#1359)
- Help with intializing the
getq
function from the tutorials (#1515) - Sampling from prior using return value doesn't work with MvNormal (#1559)
- Needs a method to get generated_quantities from the result of an optimization (#1886)
- Turing Sampling specified parameters (#1911)
- OrdinalLogistic - wrong support? (#1970)
- Arraydist and Dirichlet cause stackoverflow error (#1989)
- Hidden Markov tutorial crashes (#2074)
- Cannot sample from bounded distribution when using Dual types (#2088)
- missing keyword arguments not property processed (#2259)
- ReverseDiff Error with Vector{Real} Input in Turing Model (#2364)
- Remove
hmc.jl
andmh.jl
in light of upstreamed "getparams" into AbstractMCMC (#2367) - Improve Gibbs dynamic model test (#2402)
- Question: MCMChain after VI sampling (#2462)
parameters
macro for specifying trace manually (aka Turing'sVarInfo
) (#2492)- Automate formatter on PRs (#2596)
- Add a support_policy.md (#2601)
- How to mimick a discrete bayes net? (#2606)
- arraydist() errors with non <:Real data (#2611)
- arraydist() errors when custom distribution uses non-Real data (#2612)
- Remove DistributionsAD (#2613)
v0.39.3
Turing v0.39.3
Improved the performance of Turing.Inference.getparams
when called with an untyped VarInfo as the second argument, by first converting to a typed VarInfo.
This makes, for example, the post-sampling Chains construction for Prior()
run much faster.
Merged pull requests:
- Fix performance of
getparams
on untyped vi (#2605) (@penelopeysm)
Closed issues:
- Prior() sampling takes longer than NUTS() (#2604)
v0.39.2
Turing v0.39.2
Fixed a bug in the support of OrderedLogistic
(by changing the minimum from 0 to 1).
Merged pull requests:
- clean up some more imports (#2589) (@penelopeysm)
- Remove
DynamicPPL.alg_str
tests (#2591) (@penelopeysm) - Update Project.toml (#2598) (@yebai)
Closed issues:
v0.39.1
Turing v0.39.1
No changes from 0.39.0 — this patch is released just to re-trigger a Documenter.jl run.
Merged pull requests:
- Bump tag for GHA (#2586) (@penelopeysm)
Closed issues:
v0.39.0
Turing v0.39.0
Breaking changes:
Update to the AdvancedVI interface
Turing's variational inference interface was updated to match version 0.4 version of AdvancedVI.jl.
AdvancedVI v0.4 introduces various new features:
- location-scale families with dense scale matrices,
- parameter-free stochastic optimization algorithms like
DoG
andDoWG
, - proximal operators for stable optimization,
- the sticking-the-landing control variate for faster convergence, and
- the score gradient estimator for non-differentiable targets.
Please see the Turing API documentation, and AdvancedVI's documentation, for more details.
Removal of Turing.Essential
The Turing.Essential module has been removed.
Anything exported from there can be imported from either Turing
or DynamicPPL
.
@addlogprob!
The @addlogprob!
macro is now exported from Turing, making it officially part of the public interface.
Merged pull requests:
- Release: [email protected] (#2517) (@penelopeysm)
v0.38.6
Turing v0.38.6
Added compatibility with AdvancedHMC 0.8.
Merged pull requests:
- CompatHelper: bump compat for AdvancedHMC to 0.8, (keep existing compat) (#2582) (@github-actions[bot])
v0.38.5
Turing v0.38.5
Added compatibility with ForwardDiff v1.
Merged pull requests:
- Update to the [email protected] interface (#2506) (@Red-Portal)
- CompatHelper: bump compat for ForwardDiff to 1 for package test, (keep existing compat) (#2523) (@github-actions[bot])
- CompatHelper: add new compat entry for ADTypes at version 1 for package test, (keep existing compat) (#2571) (@github-actions[bot])
- Reorganise code in
src/mcmc/Inference.jl
(#2573) (@penelopeysm) - Clean up old code (#2574) (@penelopeysm)
- Rename
mcmc/sample.jl
tomcmc/abstractmcmc.jl
(#2576) (@yebai)
Closed issues:
v0.38.4
Turing v0.38.4
Merged pull requests:
- Remove AD backend loops in test suite (#2564) (@penelopeysm)
- Refactor HMC initialisation code (#2567) (@penelopeysm)
- Disable Mooncake on prerelease; bump min Julia to 1.10.2; regroup CI tests (#2569) (@penelopeysm)
Closed issues:
v0.38.3
Turing v0.38.3
getparams(::Model, ::AbstractVarInfo)
now returns an empty Float64[]
if the VarInfo contains no parameters.
Merged pull requests:
- Fix various methods for on empty varinfo (#2561) (@penelopeysm)