pyjuice.nodes.distributions.SoftEvidenceCategorical

class pyjuice.nodes.distributions.SoftEvidenceCategorical(num_cats: int, _dual_flow_backward: bool = True)

A class representing a Categorical distribution that allows external soft evidence.

Parameters:

num_cats (int) – number of categories

__init__(num_cats: int, _dual_flow_backward: bool = True)

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.