Here is my code:
from pymc3.distributions.timeseries import scan`
from pymc3 import Deterministic
…
V = Deterministic(‘V’, tt.concatenate([V0, Q[:-1]]))
G0 = Deterministic(‘G0’, beta0[None, :, None] * V + log_c.T[None, :, :])
(G, _) = scan(g_model,sequences=[inp, V, G0],non_sequences=[beta1, log_c, range(n_subs)], name=‘g’)
where inp is a numpy.array with size of d1*d2*d3, g_model is a function.
The error shows at following:
TypeError: slice indices must be integers or None or have an _index_ method
I guess the problem fixed on the Deterministic datatype. I don’t know how to make Deterministic be looped like theano variables or numpy.array. So how to make it possible?