@@ -93,7 +93,7 @@ class LogTransformBase(Transform):
93
93
is_separable = True
94
94
has_inverse = True
95
95
96
- def __init__ (self , nonpos = 'mask ' ):
96
+ def __init__ (self , nonpos = 'clip ' ):
97
97
Transform .__init__ (self )
98
98
self ._clip = {"clip" : True , "mask" : False }[nonpos ]
99
99
@@ -115,7 +115,9 @@ def transform_non_affine(self, a):
115
115
return out
116
116
117
117
def __str__ (self ):
118
- return "{}({!r})" .format (type (self ).__name__ , "clip" if self ._clip else "mask" )
118
+ return "{}({!r})" .format (type (self ).__name__ ,
119
+ "clip" if self ._clip else "mask" )
120
+
119
121
120
122
class InvertedLogTransformBase (Transform ):
121
123
input_dims = 1
@@ -173,7 +175,7 @@ def inverted(self):
173
175
174
176
175
177
class LogTransform (LogTransformBase ):
176
- def __init__ (self , base , nonpos = 'mask ' ):
178
+ def __init__ (self , base , nonpos = 'clip ' ):
177
179
LogTransformBase .__init__ (self , nonpos )
178
180
self .base = base
179
181
@@ -471,7 +473,8 @@ def inverted(self):
471
473
return LogisticTransform (self ._nonpos )
472
474
473
475
def __str__ (self ):
474
- return "{}({!r})" .format (type (self ).__name__ , "clip" if self ._clip else "mask" )
476
+ return "{}({!r})" .format (type (self ).__name__ ,
477
+ "clip" if self ._clip else "mask" )
475
478
476
479
477
480
class LogisticTransform (Transform ):
0 commit comments