wuxiyu opened this issue 8 years ago · 1 comments
cost_arr[2*i], _ = theano.scan(lambda f_bar, t: T.switch(T.or_(T.eq(t, f[i]), T.eq(t, T.shape(L)[0]-1)), 0, T.largest(gamma - s_Ot(T.stack(*m[:i+1]), f[i], t, L), 0)), sequences=[L, T.arange(T.shape(L)[0])])
It seem to do nothing?
f_bar is equal to f[i] when t != f[i]. I just wrote the equation in a convoluted manner.
f_bar
f[i]
t != f[i]