@classmethod
    def _constructor(cls, p, **kwargs):
        p = cls._ensure_moments(p, 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)
Constructs distribution and moments objects.
dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/bernoulli.py/Bernoulli._constructor