

def __str__(self):
    '\n        Print the distribution using standard parameterization.\n        '
    p = (1 / (1 + np.exp((- self.phi[0]))))
    return ('%s ~ Bernoulli(p)\n  p = \n%s\n' % (self.name, p))

dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/bernoulli.py Bernoulli.__str__/original