markovflow.kernels.kernel
Module containing a base class for kernels.
Kernel
Bases: tf.Module, abc.ABC
tf.Module
abc.ABC
Abstract class generating a StateSpaceModel for a given set of time points.
StateSpaceModel
For a given set of time points \(tₖ\), define a state space model of the form:
…where:
And an EmissionModel for a given output dimension:
EmissionModel
Note
Implementations of this class should typically avoid performing computation in their __init__ method. Performing computation in the constructor conflicts with running in TensorFlow’s eager mode.
__init__
output_dim
Return the output dimension of the kernel.
build_finite_distribution
Return the GaussMarkovDistribution that this kernel represents on the provided time points.
GaussMarkovDistribution
Currently the only representation we can use is a StateSpaceModel.
time_points – The times between which to define the distribution, with shape batch_shape + [num_data].
batch_shape + [num_data]
generate_emission_model
Return the EmissionModel associated with this kernel that maps from the latent GaussMarkovDistribution to the observations.
time_points – The time points over which the emission model is defined, with shape batch_shape + [num_data].