liesel.model.nodes#

Nodes and variables.

Functions

Obs(value[, distribution, name])

Defines an observed variable.

Param(value[, distribution, name])

Defines a parameter variable.

add_group(name, **kwargs)

Assigns the nodes and variables to a group.

Classes

Calc(function, *inputs[, _name, _needs_seed])

A calculator node.

Data(value[, _name])

A data node.

Dist(distribution, *inputs[, _name, _needs_seed])

A distribution node.

Group(name, **nodes_and_vars)

A group holds a collection of related Var and/or Node objects.

InputGroup(*inputs[, _name, _needs_seed])

A node that groups its inputs for another node.

Node(*inputs[, _name, _needs_seed])

A node of a computational graph.

NodeState(value, outdated[, extra])

The state of a node.

TransientCalc(function, *inputs[, _name, ...])

A transient calculator node that does not cache its value.

TransientDist(distribution, *inputs[, ...])

A transient distribution node that does not cache its value.

TransientIdentity(_input[, _name])

A transient identity node that does not cache its value.

TransientNode(*inputs[, _name, _needs_seed])

A node that does not cache its value.

Var(value[, distribution, name])

A variable wrapping a value and a distribution node.