88cd16a4e3c70d82567c96c1ffc277ef8ea87a3f,pymc3/tests/test_hmc.py,,test_leapfrog_reversible,#,14
Before Change
for n_steps in [1, 2, 3, 4, 20]:
q, p = q0, p0
q, p, _ = step.leapfrog(q, p, floatX(np.array(epsilon)), np.array(n_steps, dtype="int32"))
q, p, _ = step.leapfrog(q, -p, floatX(np.array(epsilon)), np.array(n_steps, dtype="int32"))
close_to(q, q0, precision, str((n_steps, epsilon)))
close_to(-p, p0, precision, str((n_steps, epsilon)))
After Change
scaling = floatX(np.random.randn(size) ** 2)
step = BaseHMC(vars=model.vars, model=model, scaling=scaling)
step.integrator._logp_dlogp_func.set_extra_values({})
p = floatX(step.potential.random())
q = floatX(np.random.randn(size))
start = step.integrator.compute_state(p, q)
precision = select_by_precision(float64=1E-8, float32=1E-4)
for epsilon in [.01, .1, 1.2]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pymc-devs/pymc3
Commit Name: 88cd16a4e3c70d82567c96c1ffc277ef8ea87a3f
Time: 2017-07-18
Author: adrian.seyboldt@gmail.com
File Name: pymc3/tests/test_hmc.py
Class Name:
Method Name: test_leapfrog_reversible
Project Name: nipy/dipy
Commit Name: ec2ae4f19fb7ee56bd8d33935b307a0dbc09c29a
Time: 2015-03-15
Author: arokem@gmail.com
File Name: dipy/reconst/tests/test_csdeconv.py
Class Name:
Method Name: test_csd_predict_multi
Project Name: apache/incubator-tvm
Commit Name: 900254d3425ba728dacbf8e5e0ce29fce8eccd3f
Time: 2020-05-06
Author: mbrookhart@octoml.ai
File Name: tests/python/frontend/onnx/test_forward.py
Class Name:
Method Name: _test_upsample_bilinear_opset9