Releases: TuringLang/AdvancedHMC.jl
Releases · TuringLang/AdvancedHMC.jl
v0.7.0
AdvancedHMC v0.7.0
Breaking changes
- Type piracies of
Base.rand
andBase.randn
for 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
, andMultinomialTS
are made concrete by adding type parameters: Update occurrences of these types (eg. in function signatures) if necessary - Definitions of
Base.rand
for metrics are removed: Use the (internal)AdvancedHMC.rand_momentum
function if you depend on this functionality and open an issue to further discuss the API
Merged pull requests:
- Initial
AbstractMCMC.step
should not sample (#366) (@torfjelde) - Revert "Initial
AbstractMCMC.step
should not sample" (#385) (@torfjelde) - Documentation and Turing Navigation CI improvement (#386) (@shravanngoswamii)
- Fix
rand
andrandn
type piracy (#387) (@devmotion) - Reduce allocations in
all
+any
and removeisfinite
type piracy (#388) (@devmotion) - Remove
DEBUG
constant (#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
rand
overloads for sampling of momentum (#400) (@devmotion)
Closed issues:
v0.6.4
AdvancedHMC v0.6.4
Merged pull requests:
- Specialize on
Type
s and use if-else instead ofVal
-dispatches (#383) (@devmotion)
v0.6.3
AdvancedHMC v0.6.3
Merged pull requests:
- Update GH actions and add dependabot (#377) (@devmotion)
- Add
getparams
andsetparams!!
following AbstractMCMC v5.5 and v5.6 (#378) (@sunxd3)
v0.6.2
AdvancedHMC v0.6.2
Merged pull requests:
- Fix Step (#359) (@JaimeRZP)
- Fix broken links and tags in docs (#367) (@mhauru)
- added navabr workflow (#368) (@jeetsuthar)
- feat: support position-dependent kinetic (#369) (@xukai92)
- Generalized leapfrog integrator (#370) (@xukai92)
- Update DocsNav.yml (#371) (@shravanngoswamii)
- Use
Base.RefValue
(#374) (@devmotion) - Use
n_adapts
instead ofnadapts
(#375) (@devmotion) - Require AbstractMCMC 5 (#376) (@devmotion)
v0.6.1
AdvancedHMC v0.6.1
Merged pull requests:
- Allow CUDA v5 (#360) (@ChrisRackauckas)
- fix: conflict of @main from Base (nightly) (#362) (@xukai92)
v0.6.0
AdvancedHMC v0.6.0
Merged pull requests:
- fix: arg order (#349) (@xukai92)
- CompatHelper: bump compat for AbstractMCMC to 5, (keep existing compat) (#352) (@github-actions[bot])
- Deprecate
init_params
which is no longer in AbstractMCMC (#353) (@torfjelde) - CompatHelper: add new compat entry for Statistics at version 1, (keep existing compat) (#354) (@github-actions[bot])
- Removed deprecation of init_params + bump minor version (#355) (@torfjelde)
- Fix some tests. (#356) (@yebai)
- Fix docs CI (#357) (@yebai)
Closed issues:
- Doc string error for NUTS (#346)
v0.5.5
v0.5.4
v0.5.2
v0.5.1
AdvancedHMC v0.5.1
Merged pull requests:
- Further improvements to recently introduced constructors (#340) (@torfjelde)
- Add back the
HMC(eps, n_leapfrog)
as a convenience constructor (#341) (@yebai)