Skip to content

Commit 587828c

Browse files
authored
Merge pull request #1489 from pymc-devs/arbitrary_deterministic_fix
Fixed import error in disaster_model_arbitrary_deterministic
2 parents 719cd3e + bef8df4 commit 587828c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/examples/disaster_model_arbitrary_deterministic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from pymc3 import *
99
import theano.tensor as tt
10+
from theano import as_op
1011
from numpy import arange, array, empty
1112

1213
__all__ = ['disasters_data', 'switchpoint', 'early_mean', 'late_mean', 'rate',
@@ -25,7 +26,7 @@
2526
# here is the trick
2627

2728

28-
@theano.compile.ops.as_op(itypes=[tt.lscalar, tt.dscalar, tt.dscalar], otypes=[tt.dvector])
29+
@as_op(itypes=[tt.lscalar, tt.dscalar, tt.dscalar], otypes=[tt.dvector])
2930
def rateFunc(switchpoint, early_mean, late_mean):
3031
''' Concatenate Poisson means '''
3132
out = empty(years)

0 commit comments

Comments
 (0)