971db0748a9d5d07a6d6102c656b2c3b043e9231,pymc3/step_methods/hmc/base_hmc.py,BaseHMC,__init__,#BaseHMC#Any#Any#Any#Any#Any#Any#Any#Any#Any#,14
Before Change
vars = inputvars(vars)
if scaling is None and potential is None:
scaling = floatX(np.ones(model.dict_to_array(model.test_point).size))
if isinstance(scaling, dict):
scaling = guess_scaling(Point(scaling, model=model), model=model, vars=vars)
After Change
if scaling is None and potential is None:
varnames = [var.name for var in vars]
size = sum(v.size for k, v in model.test_point.items() if k in varnames)
scaling = floatX(np.ones(size))
if isinstance(scaling, dict):
scaling = guess_scaling(Point(scaling, model=model), model=model, vars=vars)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: pymc-devs/pymc3
Commit Name: 971db0748a9d5d07a6d6102c656b2c3b043e9231
Time: 2017-07-16
Author: ctm22396@gmail.com
File Name: pymc3/step_methods/hmc/base_hmc.py
Class Name: BaseHMC
Method Name: __init__
Project Name: biolab/orange3
Commit Name: b39db6e2bf0c806554578b5c9895d9b7ef6bd48c
Time: 2017-09-09
Author: pavlin.g.p@gmail.com
File Name: Orange/statistics/util.py
Class Name:
Method Name: _count_nans_per_row_sparse
Project Name: pymc-devs/pymc3
Commit Name: 15737a9c0f9437de0ee25ff3fb69518ea87c1c06
Time: 2016-02-16
Author: thomas.wiecki@gmail.com
File Name: pymc3/step_methods/metropolis.py
Class Name: Metropolis
Method Name: __init__