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

Function eval_us

mbd/utils.py:6–12  ·  view source on GitHub ↗
(step_env, state, us)

Source from the content-addressed store, hash-verified

4
5# evaluate the diffused uss
6def eval_us(step_env, state, us):
7 def step(state, u):
8 state = step_env(state, u)
9 return state, state.reward
10
11 _, rews = jax.lax.scan(step, state, us)
12 return rews
13
14def rollout_us(step_env, state, us):
15 def step(state, u):

Callers 1

run_path_integralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected