NegativeLogexp Pep8ted

This commit is contained in:
Max Zwiessele 2013-10-02 19:14:35 +01:00
parent 269cc84253
commit 3b40a47cbc
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ class Parameterized(object):
def constrain_negative(self, regexp):
""" Set negative constraints. """
self.constrain(regexp, transformations.Negative_logexp())
self.constrain(regexp, transformations.NegativeLogexp())
def constrain_positive(self, regexp):
""" Set positive constraints. """

View file

@ -43,7 +43,7 @@ class Logexp(Transformation):
def __str__(self):
return '(+ve)'
class Negative_logexp(Transformation):
class NegativeLogexp(Transformation):
domain = NEGATIVE
def f(self, x):
return -Logexp.f(x) # np.log(1. + np.exp(x))