

def test_should_output_single_float_multinomial(self):
    kl = qtu.KL_divergence(mcmext.p_MultinomialComponentModel, self.params_mult, self.weights_mult, self.M_c_mult, self.X_L_mult, self.X_D_mult)
    assert isinstance(kl, float)
    assert (kl >= 0.0)

dataset/ETHPy150Open probcomp/crosscat/src/tests/unit_tests/test_quality_test_utils.py TestKLDivergence.test_should_output_single_float_multinomial/original