pyjuice.nodes

Nodes

InputNodes

A class representing vectors of input nodes.

ProdNodes

A class representing vectors of product nodes.

SumNodes

A class representing vectors of sum nodes.

Methods

foreach

Traverse all nodes of a PC and can a specific function.

foldup_aggregate

Traverse all nodes of a PC bottom-up and aggregate a per-node object.

Input Distributions

distributions.Bernoulli

A class representing Bernoulli distributions.

distributions.Categorical

A class representing Categorical distributions.

distributions.DiscreteLogistic

A class representing Discrete Logistic distributions.

distributions.Gaussian

A class representing Gaussian distributions.

distributions.MaskedCategorical

A class representing Categorical distributions with masks.