Node
Node#
- class liesel.model.nodes.Node(*inputs, _name='', _needs_seed=False, **kwinputs)[source]#
Bases:
abc.ABC
A node of a computational graph.
Methods
Returns all non-keyword and keyword input nodes as a frozen set.
Returns all output nodes as a frozen set.
Clears the state of the node.
Flags the node and its recursive outputs as outdated.
set_inputs
(*inputs, **kwinputs)Sets the non-keyword and keyword input nodes.
update
()Updates the value of the node.
Attributes
The groups the node is part of.
The non-keyword input nodes.
The keyword input nodes.
The model the node is part of.
The name of the node.
Whether the node needs a seed / PRNG key.
Whether the node is outdated.
The output nodes.
The state of the node.
The value of the node.
The variable the node is part of.
Whether the node should be monitored by an inference algorithm.