bayespy.inference.vmp.nodes.constant.Constant

class bayespy.inference.vmp.nodes.constant.Constant(moments, x, **kwargs)[source]

Node for presenting constant values.

The node wraps arrays into proper node type.

__init__(moments, x, **kwargs)[source]

Methods

__init__(moments, x, **kwargs)

add_plate_axis(to_plate)

broadcasting_multiplier(plates, *args)

delete()

Delete this node and the children

get_mask()

get_moments()

get_pdf_nodes()

get_shape(ind)

has_plotter()

Return True if the node has a plotter

lower_bound_contribution([gradient])

move_plates(from_plate, to_plate)

plot([fig])

Plot the node distribution using the plotter of the node

random()

set_plotter(plotter)

set_value(x)

Attributes

plates

plates_multiplier

Plate multiplier is applied to messages to parents