bayespy.nodes.Gate.__init__¶
- Gate.__init__(Z, X, gated_plate=-1, moments=None, **kwargs)[source]¶
Constructor for the gating node.
- Parameters
- ZCategorical-like node
A variable which chooses the index along the gated plate axis
- Xnode
The node whose plate axis is gated
- gated_plateint (optional)
The index of the plate axis to be gated (by default, -1, that is, the last axis).