def test_correct_conditional_prob_v(self):
        """
        Test whether the conditional probability p(v=1|h) is correctly computed. This function uses the fact that
        exp(0) = 1 and sigm(1) = 0.5
        """
        weights = self.weights * (float(HIDDEN_UNITS) / 1)
        bias_visible = self.bias_visible * -1
        dist = Bernoulli(VISIBLE_UNITS, HIDDEN_UNITS, weights, self.bias_hidden, bias_visible)
        target = 0.5 * VISIBLE_UNITS
        actual = dist.conditional_prob_v(self.hid_inp)
        self.assertEqual(target, np.sum(actual), "Target: " + str(target) + ", Actual: " + str(actual))
dataset/ETHPy150Open deprofundis/deprofundis/models/test/test_distribution.py/BernoulliTest.test_correct_conditional_prob_v/swapped operands of `/`