pyjuice.nodes.distributions.Indicator

class pyjuice.nodes.distributions.Indicator(num_states: int)

A class representing Indicator distributions. It is a special case of Literal, and handles the case where we want to have k nodes on X representing X = 0, X = 1, …, X = k-1.

__init__(num_states: int)

Methods

num_param_flows()

The number of parameter flows per node.

num_parameters()

The number of parameters per node.

Attributes

need_meta_parameters

A flag indicating whether users need to pass in meta-parameters to the constructor of InputNodes.