You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a view of `a` where slices specified by `m` are selected. `m` can be multidimensional, but the dimensions of m must match the last dimensions of `a`.
44
+
For example, if `m` is a boolean array, then `size(a)[ndims(a)-ndims(m):end] == size(m)`.
Samples `Xt` at `t` conditioned on `X0` and `X1` under the process `P`. Start time is `t0` (0 if not specified). End time is 1.
71
+
If `X1` is a `MaskedState`, then `Xt` will equal `X1` where the conditioning mask `X1.cmask` is 1.
72
+
`P`, `X0`, `X1` can also be tuples where the Nth element of `P` will be used for the Nth elements of `X0` and `X1`.
73
+
The same `t` and (optionally) `t0` will be used for all elements. If you need a different `t` for each Proces/State, broadcast with `bridge.(P, X0, X1, t0, t)`.
#copytensor! and predictresolve are used handle the state translation that happens in gen(...).
88
+
#We want the user's X̂₁predictor, which is a DL model, to return a plain tensor (since that will be on the GPU, in the loss, etc).
89
+
#This means we need to automagically create a State (typical for the continuous case) or Likelihood (typical for the discrete case) from the tensor.
90
+
#But the user may return a State in the Discrete case (for massive state spaces with sub-linear sampling), and a Likelihood in the Continuous case (for variance matching models)
91
+
#This also needs to handle MaskedStates (needs testing).
92
+
#We need: X̂₁ = fix(X̂₁predictor(t, Xₜ))
93
+
#Plan: When X̂₁predictor(t, Xₜ) is a State or Likelihood, just pass through.
94
+
#When X̂₁predictor(t, Xₜ) is a plain tensor, we apply default conversion rules.
Constructs a sequence of (stochastic) bridges between `X0` and the predicted `X̂₁` under the process `P`.
121
+
`P`, `X0`, can also be tuples where the Nth element of `P` will be used for the Nth elements of `X0` and `X̂₁predictor`.
122
+
X̂₁predictor is a function that takes `t` (scalar) and `Xₜ` (optionally a tuple) and returns `X̂₁` (a `UState`, a flat tensor with the right shape, or a tuple of either).
123
+
If `X0` is a `MaskedState` (or has a ), then anything `X̂₁` will be conditioned on `X0` where the conditioning mask `X0.cmask` is 1.
0 commit comments