bayespy.inference.vmp.nodes.categorical_markov_chain.CategoricalMarkovChainMoments

class bayespy.inference.vmp.nodes.categorical_markov_chain.CategoricalMarkovChainMoments(categories, length)[source]

Class for the moments of categorical Markov chain variables.

__init__(categories, length)[source]

Create moments object for categorical Markov chain variables.

Methods

__init__(categories, length) Create moments object for categorical Markov chain variables.
add_converter(moments_to, converter)
compute_fixed_moments(x) Compute the moments for a fixed value
from_values(x, categories) Return the shape of the moments for a fixed value.
get_converter(moments_to) Finds conversion to another moments type if possible.
get_instance_conversion_kwargs() Override this method when moment class instances are not identical if they have different attributes.
get_instance_converter(**kwargs) Default converter within a moments class is an identity.