nami.core.typing#
Classes
|
Interface for computing divergence of velocity field in log-likelihood calc. |
|
Interface for diffusion model noise schedules with forward process x_t = alpha(t)*x_0 + sigma(t) * epsilon |
|
Interface for ODE integrators. |
|
Interface for interpolation paths in the fm models |
|
Interface for SDE integrators. |
- class nami.core.typing.DivergenceEstimator(*args, **kwargs)[source]#
Bases:
ProtocolInterface for computing divergence of velocity field in log-likelihood calc. via change of variables.
- class nami.core.typing.NoiseSchedule(*args, **kwargs)[source]#
Bases:
ProtocolInterface for diffusion model noise schedules with forward process x_t = alpha(t)*x_0 + sigma(t) * epsilon
Methods: — - alpha(t): signal scaling coeff. at time t - sigma(t): noise scaling coeff. at time t - snr: signal-to-noise ratio (alpha^2/sigma^2) - drift(x,t): term in SDE dx = f(x,t)dt + g(t) dW - diffusion: the diffusion coeff. g(t)
- class nami.core.typing.ODESolver(*args, **kwargs)[source]#
Bases:
ProtocolInterface for ODE integrators.
Methods:#
integrate: solve dx/dt = f(x,t) from t0 to t1 given initial state x0
integrate_augmented: jointly solve for state and the log-prob change
- class nami.core.typing.ProbabilityPath(*args, **kwargs)[source]#
Bases:
ProtocolInterface for interpolation paths in the fm models
Methods: — - sample_xt: given data, noise and time, return the interpolated point along the path - target_ut: ground truth velocity field used in the loss