68d5201292b45feecbfaf88a10aa8e392d5ab9f2,pymc3/tests/test_sampling.py,TestSamplePPC,test_deterministic_of_observed,#TestSamplePPC#,603

Before Change


            ppc = pm.fast_sample_posterior_predictive(
                model=model,
                trace=ppc_trace,
                samples=len(ppc_trace),
                var_names=[var.name for var in (model.deterministics + model.basic_RVs)],
            )

After Change


            rtol = 1e-5 if theano.config.floatX == "float64" else 1e-4
            npt.assert_allclose(ppc["in_1"] + ppc["in_2"], ppc["out"], rtol=rtol)

            np.random.seed(0)
            ppc = pm.sample_posterior_predictive(
                model=model,
                trace=trace,
                samples=len(trace) * nchains,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pymc-devs/pymc3
Commit Name: 68d5201292b45feecbfaf88a10aa8e392d5ab9f2
Time: 2020-11-23
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/tests/test_sampling.py
Class Name: TestSamplePPC
Method Name: test_deterministic_of_observed


Project Name: tomgoldstein/loss-landscape
Commit Name: 749438fd8b7ffc29e78d042473cb00fda595d937
Time: 2018-12-27
Author: tomg@cs.umd.edu
File Name: dataloader.py
Class Name:
Method Name: load_dataset


Project Name: tensorflow/minigo
Commit Name: 68e099aff7200ffff5f2edbca98a924a47ef8384
Time: 2019-04-22
Author: sethtroisi@google.com
File Name: ratings/ratings.py
Class Name:
Method Name: main