

def test_normal_means_should_be_farther_apart_if_they_have_higer_separation(self):
    random.seed(0)
    closer = sdg.generate_separated_model_parameters('continuous', 0.1, 2, self.get_next_seed)
    sum_std_close = ((closer[0]['rho'] ** (- 0.5)) + (closer[1]['rho'] ** (- 0.5)))
    distance_close = (((closer[0]['mu'] - closer[1]['mu']) / sum_std_close) ** 2.0)
    random.seed(0)
    farther = sdg.generate_separated_model_parameters('continuous', 0.5, 2, self.get_next_seed)
    sum_std_far = ((farther[0]['rho'] ** (- 0.5)) + (farther[1]['rho'] ** (- 0.5)))
    distance_far = (((farther[0]['mu'] - farther[1]['mu']) / sum_std_far) ** 2.0)
    random.seed(0)
    farthest = sdg.generate_separated_model_parameters('continuous', 1.0, 2, self.get_next_seed)
    sum_std_farthest = ((farthest[0]['rho'] ** (- 0.5)) + (farthest[1]['rho'] ** (- 0.5)))
    distance_farthest = (((farthest[0]['mu'] - farthest[1]['mu']) / sum_std_farthest) ** 2.0)
    assert (distance_far > distance_close)
    assert (distance_farthest > distance_far)

dataset/ETHPy150Open probcomp/crosscat/src/tests/unit_tests/test_synthetic_data_generator.py TestGenerateGeparatedGodelParameters.test_normal_means_should_be_farther_apart_if_they_have_higer_separation/original