bayespy.inference.vmp.nodes.multinomial.MultinomialMoments

class bayespy.inference.vmp.nodes.multinomial.MultinomialMoments(categories)[source]

Class for the moments of multinomial variables.

__init__(categories)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(categories)

Initialize self.

add_converter(moments_to, converter)

compute_fixed_moments(x)

Compute the moments for a fixed value

from_values(x)

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.