npow/MemNN

What is the role of f_bar ?

wuxiyu opened this issue · 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?

npow commented

f_bar is equal to f[i] when t != f[i]. I just wrote the equation in a convoluted manner.

image