

@classmethod
def _constructor(cls, p, **kwargs):
    '\n        Constructs distribution and moments objects.\n        '
    p = cls._ensure_moments(cls, BetaMoments)
    parent_moments = (p._moments,)
    parents = [p]
    return (parents, kwargs, ((),), cls._total_plates(kwargs.get('plates'), cls._distribution.plates_from_parent(0, p.plates)), cls._distribution, cls._moments, parent_moments)

dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/bernoulli.py Bernoulli._constructor/VarMisuse@26/48 `p`->`cls`