def collapsedTransitions(Ts, policy):
    res = zeros_like(Ts[0])
    dim = len(Ts[0])
    for ai, ap in enumerate(policy.T):
        res += Ts[ai] * repmat(ap, dim, 1).T
    return res
Return the number of greenthreads that are currently executing functions in the GreenPool
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/learners/modelbased/policyiteration.py/collapsedTransitions--crossover with--dataset/ETHPy150Open veegee/guv/guv/greenpool.py/GreenPool.running