

def _compute_message_to_parent(self, index, m, u_Z):
    '\n        Compute the message to a parent.\n        '
    if (index == 0):
        m0 = np.concatenate([m[0][(..., None)], np.zeros(np.shape(m[0]))[(..., None)]], axis=(- 1))
        return [self]
    else:
        raise ValueError('Incorrect parent index')

dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/bernoulli.py CategoricalToBernoulli._compute_message_to_parent/VarMisuse@79/104 `m0`->`self`