Beispiel #1
0
def cond(i, prev_elbo, elbo, qxt, qxt1):
    return T.logical_and(i < max_iter, abs(prev_elbo - elbo) >= tol)
Beispiel #2
0
 def cond(i, _, __, prev_elbo, curr_elbo):
     with T.core.control_dependencies([T.core.print(curr_elbo)]):
         prev_elbo = T.core.identity(prev_elbo)
     return T.logical_and(
         T.abs(curr_elbo - prev_elbo) > tol, i < max_iter)
Beispiel #3
0
 def cond(i, elbo, prev_elbo, q):
     return T.logical_and(i < max_iter, abs(elbo - prev_elbo) > tol)