MCPcopy Create free account
hub / github.com/LeCAR-Lab/model-based-diffusion / cem_update

Function cem_update

mbd/planners/path_integral.py:49–52  ·  view source on GitHub ↗
(weights, Y0s, sigma, mu_0t)

Source from the content-addressed store, hash-verified

47
48@jax.jit
49def cem_update(weights, Y0s, sigma, mu_0t):
50 idx = jnp.argsort(weights)[::-1][:10]
51 mu_0tm1 = jnp.mean(Y0s[idx], axis=0)
52 return mu_0tm1, sigma
53
54
55def run_path_integral(args: Args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected