f749c4f713a6f365809713ca394326faf34ec34e,tests/test_distributions.py,DistributionsTestCase,test_dist_normal,#DistributionsTestCase#,27

Before Change



        util.debug("dist_mean", "dist_mean_empirical", "dist_mean_correct", "dist_stddev", "dist_stddev_empirical", "dist_stddev_correct", "dist_log_prob", "dist_log_prob_correct")

        self.assertAlmostEqual(dist_mean, dist_mean_correct, places=1)
        self.assertAlmostEqual(dist_mean_empirical, dist_mean_correct, places=1)
        self.assertAlmostEqual(dist_stddev, dist_stddev_correct, places=1)
        self.assertAlmostEqual(dist_stddev_empirical, dist_stddev_correct, places=1)
        self.assertAlmostEqual(dist_log_prob, dist_log_prob_correct, places=1)

After Change


        dist_stddevs_empirical = util.to_numpy(dist_empirical.stddev)
        dist_log_probs = util.to_numpy(dist.log_prob(dist_means_correct))

        util.debug("dist_sample_shape", "dist_sample_shape_correct", "dist_means", "dist_means_empirical", "dist_means_correct", "dist_stddevs", "dist_stddevs_empirical", "dist_stddevs_correct", "dist_log_probs", "dist_log_probs_correct")

        self.assertEqual(dist_sample_shape, dist_sample_shape_correct)
        self.assertTrue(np.allclose(dist_means, dist_means_correct, atol=0.1))
        self.assertTrue(np.allclose(dist_means_empirical, dist_means_correct, atol=0.1))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pyprob/pyprob
Commit Name: f749c4f713a6f365809713ca394326faf34ec34e
Time: 2018-02-16
Author: atilimgunes.baydin@gmail.com
File Name: tests/test_distributions.py
Class Name: DistributionsTestCase
Method Name: test_dist_normal


Project Name: pyprob/pyprob
Commit Name: f749c4f713a6f365809713ca394326faf34ec34e
Time: 2018-02-16
Author: atilimgunes.baydin@gmail.com
File Name: tests/test_distributions.py
Class Name: DistributionsTestCase
Method Name: test_dist_uniform


Project Name: pyprob/pyprob
Commit Name: fd55f89f165b31e0236070438d2041e648c10ecf
Time: 2018-02-11
Author: atilimgunes.baydin@gmail.com
File Name: tests/test_model_gum.py
Class Name: TestCase
Method Name: test_model_gum_posterior_inference_compilation