distributions: tuple or list or None
A set of distribution objects. These do not need to be initialized,
i.e. can be "Categorical()". Currently, they must be either Categorical
or JointCategorical distributions. If provided, they must be consistent
with the provided edges in that every conditional distribution must
have at least one parent in the provided structure. Default is None.
However, this conflicts the following lines in the add_distribution method:
if not isinstance(distribution, (Categorical, ConditionalCategorical)):
raise ValueError("Must be Categorical or ConditionalCategorical")
The current comment says that:
Parameters
However, this conflicts the following lines in the add_distribution method:
if not isinstance(distribution, (Categorical, ConditionalCategorical)): raise ValueError("Must be Categorical or ConditionalCategorical")