mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 05:46:24 +02:00
fix DGPLVM prior
This commit is contained in:
parent
1a141d9ce5
commit
54e9a4f6ff
1 changed files with 3 additions and 10 deletions
|
|
@ -522,16 +522,9 @@ class DGPLVM(Prior):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
domain = _REAL
|
domain = _REAL
|
||||||
# _instances = []
|
|
||||||
# def __new__(cls, mu, sigma): # Singleton:
|
def __new__(cls, sigma2, lbl, x_shape):
|
||||||
# if cls._instances:
|
return super(Prior, cls).__new__(cls, sigma2, lbl, x_shape)
|
||||||
# cls._instances[:] = [instance for instance in cls._instances if instance()]
|
|
||||||
# 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, sigma2, lbl, x_shape):
|
def __init__(self, sigma2, lbl, x_shape):
|
||||||
self.sigma2 = sigma2
|
self.sigma2 = sigma2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue