bayespy.inference.vmp.nodes.gaussian.GaussianGammaMoments

class bayespy.inference.vmp.nodes.gaussian.GaussianGammaMoments(shape)[source]

Class for the moments of Gaussian-gamma-ISO variables.

__init__(shape)[source]

Create moments object for Gaussian-gamma isotropic variables

ndim=0: scalar ndim=1: vector ndim=2: matrix …

Methods

__init__(shape)

Create moments object for Gaussian-gamma isotropic variables

add_converter(moments_to, converter)

compute_fixed_moments(x_alpha)

Compute the moments for a fixed value

from_values(x_alpha, ndim)

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(ndim)

Default converter within a moments class is an identity.