Skip to content

Commit 5888c0f

Browse files
committed
add entry to history, bump version
1 parent 98c1ef7 commit 5888c0f

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

HISTORY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# AdvancedHMC Changelog
22

3+
## 0.8.4
4+
5+
- Introduces an experimental way to improve the *diagonal* mass matrix adaptation using gradient information (similar to [nutpie](https://github.com/pymc-devs/nutpie)),
6+
currently to be initialized for a `metric` of type `DiagEuclideanMetric`
7+
via `mma = AdvancedHMC.NutpieVar(size(metric); var=copy(metric.M⁻¹))`
8+
until a new interface is introduced in an upcoming breaking release to specify the method of adaptation.
9+
310
## 0.8.0
411

512
- To make an MCMC transtion from phasepoint `z` using trajectory `τ`(or HMCKernel `κ`) under Hamiltonian `h`, use `transition(h, τ, z)` or `transition(rng, h, τ, z)`(if using HMCKernel, use `transition(h, κ, z)` or `transition(rng, h, κ, z)`).

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AdvancedHMC"
22
uuid = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d"
3-
version = "0.8.3"
3+
version = "0.8.4"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

docs/src/api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ where `ϵ` is the step size of leapfrog integration.
3131
### Adaptor (`adaptor`)
3232

3333
- Adapt the mass matrix `metric` of the Hamiltonian dynamics: `mma = MassMatrixAdaptor(metric)`
34-
34+
3535
+ This is lowered to `UnitMassMatrix`, `WelfordVar` or `WelfordCov` based on the type of the mass matrix `metric`
36-
+ There is an experimental way to improve the *diagonal* mass matrix adaptation using gradient information (similar to [nutpie](https://github.com/pymc-devs/nutpie)),
36+
+ There is an experimental way to improve the *diagonal* mass matrix adaptation using gradient information (similar to [nutpie](https://github.com/pymc-devs/nutpie)),
3737
currently to be initialized for a `metric` of type `DiagEuclideanMetric`
38-
via `mma = AdvancedHMC.Adaptation.NutpieVar(size(metric); var=copy(metric.M⁻¹))`
39-
until a new interface is introduced to specify the method of adaptation.
38+
via `mma = AdvancedHMC.NutpieVar(size(metric); var=copy(metric.M⁻¹))`
39+
until a new interface is introduced in an upcoming breaking release to specify the method of adaptation.
4040

4141
- Adapt the step size of the leapfrog integrator `integrator`: `ssa = StepSizeAdaptor(δ, integrator)`
42-
42+
4343
+ It uses Nesterov's dual averaging with `δ` as the target acceptance rate.
4444
- Combine the two above *naively*: `NaiveHMCAdaptor(mma, ssa)`
4545
- Combine the first two using Stan's windowed adaptation: `StanHMCAdaptor(mma, ssa)`
@@ -64,12 +64,12 @@ sample(
6464
Draw `n_samples` samples using the kernel `κ` under the Hamiltonian system `h`
6565

6666
- The randomness is controlled by `rng`.
67-
67+
6868
+ If `rng` is not provided, the default random number generator (`Random.default_rng()`) will be used.
6969

7070
- The initial point is given by `θ`.
7171
- The adaptor is set by `adaptor`, for which the default is no adaptation.
72-
72+
7373
+ It will perform `n_adapts` steps of adaptation, for which the default is `1_000` or 10% of `n_samples`, whichever is lower.
7474
- `drop_warmup` specifies whether to drop samples.
7575
- `verbose` controls the verbosity.

0 commit comments

Comments
 (0)