db7ff57c52538aa7d7d566ac83de51cf5365e8f8,arviz/tests/test_diagnostics.py,TestDiagnostics,test_gelman_rubin_bad,#TestDiagnostics#,29

Before Change



    def test_gelman_rubin_bad(self):
        Confirm Gelman-Rubin statistic is far from 1 for a small number of samples.
        trace = self.fake_trace(6)
        rhat = gelman_rubin(trace)
        assert not all(1 / self.good_rhat < r < self.good_rhat for r in rhat.values)

    def test_effective_n(self):
        n_samples = 1000

After Change


        rhat = gelman_rubin(np.hstack([
            20 + np.random.randn(100, 1),
            np.random.randn(100, 1)]))
        assert 1 / self.good_rhat > rhat or self.good_rhat < rhat

    def test_effective_n_array(self):
        eff_n = effective_n(np.random.randn(4, 100))
        assert eff_n > 100
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: arviz-devs/arviz
Commit Name: db7ff57c52538aa7d7d566ac83de51cf5365e8f8
Time: 2018-09-16
Author: ColCarroll@users.noreply.github.com
File Name: arviz/tests/test_diagnostics.py
Class Name: TestDiagnostics
Method Name: test_gelman_rubin_bad


Project Name: arviz-devs/arviz
Commit Name: db7ff57c52538aa7d7d566ac83de51cf5365e8f8
Time: 2018-09-16
Author: ColCarroll@users.noreply.github.com
File Name: arviz/tests/test_diagnostics.py
Class Name: TestDiagnostics
Method Name: test_gelman_rubin


Project Name: arviz-devs/arviz
Commit Name: db7ff57c52538aa7d7d566ac83de51cf5365e8f8
Time: 2018-09-16
Author: ColCarroll@users.noreply.github.com
File Name: arviz/tests/test_diagnostics.py
Class Name: TestDiagnostics
Method Name: test_geweke