mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 12:32:40 +02:00
typo corrected for negative constrains
This commit is contained in:
parent
34edbd1459
commit
a286326e23
1 changed files with 1 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ class negative_exponent(transformation):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.domain= 'negative'
|
self.domain= 'negative'
|
||||||
def f(self,x):
|
def f(self,x):
|
||||||
return -np.exp(self.x)
|
return -np.exp(x)
|
||||||
def finv(self,x):
|
def finv(self,x):
|
||||||
return np.log(-x)
|
return np.log(-x)
|
||||||
def gradfactor(self,f):
|
def gradfactor(self,f):
|
||||||
|
|
@ -66,7 +66,6 @@ class negative_exponent(transformation):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '(-ve)'
|
return '(-ve)'
|
||||||
|
|
||||||
|
|
||||||
class logistic(transformation):
|
class logistic(transformation):
|
||||||
def __init__(self,lower,upper):
|
def __init__(self,lower,upper):
|
||||||
self.domain= 'bounded'
|
self.domain= 'bounded'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue