Description of my problem:
This problem may sound silly, but I can’t fix it. Hope get your help. Thank you.
Description of my code:
object_A = theano.shared(A, name='A')
object_t = theano.shared(t, name='t')
object_tau = theano.shared(tau, name='tau')
with pm.Model() as basic_model:
k = pm.Normal('k',mu=0,sd=5)
m = pm.Normal('m',mu=0,sd=5)
delta = pm.distributions.continuous.Laplace('delta',0, object_tau,shape = S)
gamma = -object_t_change * delta
Y = (k + theano.dot(object_A,delta)) * object_t +( m + theano.dot(object_A, gamma))
###The error output here:
File “D:\HSPcode-20181017 - 副本\fbprophet\prophet_regression_model.py”, line 135, in pm_Model_training
Y = (k + theano.dot(object_A,delta)) * object_t +( m + theano.dot(object_A, gamma))
File “C:\Python36\lib\site-packages\theano_init_.py”, line 210, in dot
(e0, e1))
UnboundLocalError: local variable ‘e1’ referenced before assignment
Versions and main components
- PyMC3 Version: 3.5
- Theano Version:1.0.3
- Python Version: 3.6