v0.7.0
AdvancedHMC v0.7.0
Breaking changes
- Type piracies of
Base.randandBase.randnfor vectors of RNGs are removed: Replacerand(rngs::AbstractVector{<:Random.AbstractRNG})withmap(rand, rngs),randn(rngs::AbstractVector{<:Random.AbstractRNG})withmap(randn, rngs),rand(rngs::AbstractVector{<:Random.AbstractRNG}, T, n::Int)(forn == length(rngs)) withmap(Base.Fix2(rand, T), rngs), andrandn(rngs::AbstractVector{<:Random.AbstractRNG}, T, m::Int, n::Int)(forn == length(rngs)) with egreduce(hcat, map(rng -> randn(rng, T, m), rngs)). - Type piracy
Base.isfinite(x::AbstractVecOrMat)is removed: Switch toall(isfinite, x)if you (possibly implicitly) relied on this definition - Abstract fields of
NesterovDualAveraging,HMCDA,SliceTS, andMultinomialTSare made concrete by adding type parameters: Update occurrences of these types (eg. in function signatures) if necessary - Definitions of
Base.randfor metrics are removed: Use the (internal)AdvancedHMC.rand_momentumfunction if you depend on this functionality and open an issue to further discuss the API
Merged pull requests:
- Initial
AbstractMCMC.stepshould not sample (#366) (@torfjelde) - Revert "Initial
AbstractMCMC.stepshould not sample" (#385) (@torfjelde) - Documentation and Turing Navigation CI improvement (#386) (@shravanngoswamii)
- Fix
randandrandntype piracy (#387) (@devmotion) - Reduce allocations in
all+anyand removeisfinitetype piracy (#388) (@devmotion) - Remove
DEBUGconstant (#389) (@devmotion) - FIx incorrect ratios of divergent transitions (#391) (@devmotion)
- Use
Random.default_rng()instead ofRandom.GLOBAL_RNG(#392) (@devmotion) - Use
Random.randexp(#393) (@devmotion) - Add Aqua tests (#395) (@devmotion)
- Rename testset to avoid that it's overwritten by ReTest (#396) (@devmotion)
- Use Julia binaries matching the runner's architecture in CI (#397) (@devmotion)
- Reduce allocations of
pm_next!(#398) (@devmotion) - Fix fields with abstract types (#399) (@devmotion)
- Remove
randoverloads for sampling of momentum (#400) (@devmotion)
Closed issues: