Skip to content

Commit da3cbbb

Browse files
committed
docs: record the diff namespace in the mapping table
Add `DiffLatentModel` to the 0.2.0 parameter-name mapping and to the list of components that already prefix their children.
1 parent bb865c6 commit da3cbbb

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

‎NEWS.md‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,21 @@ Changes are documented in Github releases.
1717
| `RandomWalk` | `rw_init` | `init` |
1818
| `Hierarchy` | `hierarchy_mean` | `mean` |
1919
| `ARStep` (field) | `damp_AR` | `damp` |
20-
21-
Unchanged, with reasons: `DiffLatentModel`'s `latent_init` would land on
22-
the inner process's own `init` (`DiffLatentModel(model = AR())` fails
23-
`check_model` under that rename); `arima`'s `ar_init` / `diff_init`
24-
keyword arguments name two different init slots in one constructor;
20+
| `DiffLatentModel` | `latent_init` | `init` |
21+
| `DiffLatentModel` (inner process) | `damp` | `diff.damp` |
22+
| `DiffLatentModel` (inner process) | `init` | `diff.init` |
23+
| `DiffLatentModel` (inner process) | `θ` | `diff.θ` |
24+
| `DiffLatentModel` (inner process) | `std` | `diff.std` |
25+
26+
`DiffLatentModel` composes two latent processes, so it now namespaces the
27+
one it differences rather than lengthening its own name. `init` is the
28+
differencing initial conditions and `diff.*` are parameters of the
29+
differenced series. `arima` inherits this, so an ARIMA chain reads
30+
`init`, `diff.init`, `diff.damp` and `diff.θ`. Pin an inner parameter
31+
through the nested form, `fix(mdl, (diff = (damp = 0.1,),))`.
32+
33+
Unchanged, with reasons: `arima`'s `ar_init` / `diff_init` keyword
34+
arguments name two different init slots in one constructor;
2535
`init_incidence`, `cluster_factor`, `import_rates` and `std` name the
2636
quantity rather than the component.
2737

‎docs/src/design.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ pinned the same way with `fix(prefixed, (gp = (σ = 0.2,),))`.
100100
Components that compose several children of the same kind prefix them
101101
already, so nothing needs adding there.
102102
[`CombineLatentModels`](@ref) names its components `Combine.1`, `Combine.2`
103-
and so on, [`ConcatLatentModels`](@ref) uses `Concat.1`, `Concat.2`, and
104-
[`Split`](@ref) prefixes each observation stream by its name.
103+
and so on, [`ConcatLatentModels`](@ref) uses `Concat.1`, `Concat.2`,
104+
[`DiffLatentModel`](@ref) namespaces the process it differences under `diff`,
105+
and [`Split`](@ref) prefixes each observation stream by its name.
105106
A Gaussian process reached through one of those never collides.
106107

107108
## The latent is folded into the infection model

0 commit comments

Comments
 (0)