b4a3253e26926125896e9208d05e9cc04f316884,GPy/core/parameterization/priors.py,Gaussian,__new__,#Any#Any#Any#,49
Before Change
for instance in cls._instances:
if instance().mu == mu and instance().sigma == sigma:
return instance()
o = super(Prior, cls).__new__(cls, mu, sigma)
cls._instances.append(weakref.ref(o))
return cls._instances[-1]()
def __init__(self, mu, sigma):
After Change
for instance in cls._instances:
if instance().mu == mu and instance().sigma == sigma:
return instance()
newfunc = super(Prior, cls).__new__
if newfunc is object.__new__:
o = newfunc(cls)
else:
o = newfunc(cls, mu, sigma)
cls._instances.append(weakref.ref(o))
return cls._instances[-1]()
def __init__(self, mu, sigma):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 12
Instances Project Name: SheffieldML/GPy
Commit Name: b4a3253e26926125896e9208d05e9cc04f316884
Time: 2015-02-28
Author: michael.p.croucher@googlemail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Gaussian
Method Name: __new__
Project Name: SheffieldML/GPy
Commit Name: b4a3253e26926125896e9208d05e9cc04f316884
Time: 2015-02-28
Author: michael.p.croucher@googlemail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Gaussian
Method Name: __new__
Project Name: SheffieldML/GPy
Commit Name: 358488cf5d05e64ddc07c38c7e125aab01548220
Time: 2015-02-28
Author: michael.p.croucher@googlemail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Gamma
Method Name: __new__
Project Name: SheffieldML/GPy
Commit Name: a6e28205e11df95348d148b22af9550f5381eee2
Time: 2015-02-28
Author: michael.p.croucher@googlemail.com
File Name: GPy/core/parameterization/priors.py
Class Name: LogGaussian
Method Name: __new__
Project Name: SheffieldML/GPy
Commit Name: 358488cf5d05e64ddc07c38c7e125aab01548220
Time: 2015-02-28
Author: michael.p.croucher@googlemail.com
File Name: GPy/core/parameterization/transformations.py
Class Name: Logistic
Method Name: __new__
Project Name: SheffieldML/GPy
Commit Name: b4a3253e26926125896e9208d05e9cc04f316884
Time: 2015-02-28
Author: michael.p.croucher@googlemail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Prior
Method Name: __new__
Project Name: SheffieldML/GPy
Commit Name: 8826ebeb8d398e0980329c51b549e37a1620dfc0
Time: 2017-10-02
Author: ibinbei@gmail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Uniform
Method Name: __new__