bayespy.inference.vmp.nodes.binomial.BinomialMoments¶
- class bayespy.inference.vmp.nodes.binomial.BinomialMoments(N)[source]¶
Class for the moments of binomial variables
Methods
__init__
(N)add_converter
(moments_to, converter)Return the shape of the moments for a fixed value.
Compute the moments for a fixed value
from_values
(x)Return the shape of the moments for a fixed value.
get_converter
(moments_to)Finds conversion to another moments type if possible.
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.
Attributes