

def _compute_moments(self, u_Z):
    '\n        Compute the moments given the moments of the parents.\n        '
    u0 = u_Z[0][(..., 0)]
    u = [u0]
    return u

dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/bernoulli.py CategoricalToBernoulli._compute_moments/original