Skip to content

TestSquashedGaussianDistribution.test_sample_with_log_prob is flaky #545

@muupan

Description

@muupan

https://travis-ci.org/chainer/chainerrl/jobs/578278226

self = <chainer.testing._bundle.TestSquashedGaussianDistribution_param_1_{ndim=2, batch_size=1} testMethod=test_sample_with_log_prob>
    def test_sample_with_log_prob(self):
        for i in range(10):
            y, log_prob = self.distrib.sample_with_log_prob()
            log_p = self.distrib.log_prob(y)
            np.testing.assert_almost_equal(
>               log_p.array, log_prob.array, decimal=5)
E           AssertionError: Parameterized test failed.
E           
E           Base test method: TestSquashedGaussianDistribution.test_sample_with_log_prob
E           Test parameters:
E             ndim: 2
E             batch_size: 1
E           
E           
E           (caused by)
E           AssertionError: 
E           Arrays are not almost equal to 5 decimals
E           
E           Mismatch: 100%
E           Max absolute difference: 5.9366226e-05
E           Max relative difference: 7.9166595e-05
E            x: array([0.74995], dtype=float32)
E            y: array([0.74989], dtype=float32)
tests/test_distribution.py:331: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions