Skip to content

Commit 9fe5c88

Browse files
ExpectationMaxtwiecki
authored andcommitted
Added sensible default value for eps in stick_breaking transform
1 parent 47139b7 commit 9fe5c88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/distributions/transforms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import theano
12
import theano.tensor as tt
23

34
from ..model import FreeRV
@@ -249,7 +250,7 @@ class StickBreaking(Transform):
249250

250251
name = "stickbreaking"
251252

252-
def __init__(self, eps=0.0):
253+
def __init__(self, eps=np.finfo(theano.config.floatX).eps):
253254
self.eps = eps
254255

255256
def forward(self, x_):

0 commit comments

Comments
 (0)