markovflow.kernels.constant
Module containing a kernel with a constant variance.
Constant
Bases: markovflow.kernels.sde_kernel.StationaryKernel
markovflow.kernels.sde_kernel.StationaryKernel
Introduces a constant variance. This kernel has the formula:
…where \(σ²\) is a kernel parameter representing the constant variance, which is supplied as a parameter to the constructor.
The transition matrix \(F\) in the SDE form for this kernel is \(F = [[1]]\).
Covariance for the steady state is \(P∞ = [[σ²]]\).
The state transition matrix is \(Aₖ = [[1]]\).
The process covariance is \(Qₖ = [[0]]\).
variance – Initial variance for the kernel. Must be a positive float.
output_dim – The output dimension of the kernel.
jitter – A small non-negative number used to make sure that matrix inversion is numerically stable.
state_dim
Return the state dimension of the generated StateSpaceModel.
StateSpaceModel
state_transitions
Return the state transition matrices of the generated StateSpaceModel.
The state transition matrix at time step \(k\) is \(Aₖ = [[1]]\).
Because this is a stationary kernel, transition_times is ignored.
transition_times
transition_times – A tensor of times at which to produce matrices, with shape batch_shape + [num_transitions]. Note this is ignored.
batch_shape + [num_transitions]
time_deltas – A tensor of time gaps for which to produce matrices, with shape batch_shape + [num_transitions].
A tensor with shape batch_shape + [num_transitions, state_dim, state_dim].
batch_shape + [num_transitions, state_dim, state_dim]
process_covariances
Return the process covariance matrices of the generated StateSpaceModel.
The process covariance for time step k is \(Qₖ = [[0]]\).
transition_times – A tensor of times at which to produce matrices, with shape `` batch_shape + [num_transitions]``. Note this is ignored.
transition_statistics
Return the state_transitions and process_covariances.
A tuple of two tensors with respective shapes batch_shape + [num_transitions, state_dim, state_dim] batch_shape + [num_transitions, state_dim, state_dim].
feedback_matrix
Return the feedback matrix \(F\). This is where:
A tensor with shape [state_dim, state_dim].
[state_dim, state_dim]
steady_state_covariance
Return the steady state covariance \(P∞\) of the generated StateSpaceModel. This is given by \(P∞ = [[σ²]]\).
variance
Return the variance parameter.