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

Method _get_done

mbd/envs/pushT.py:64–66  ·  view source on GitHub ↗
(self, pipeline_state: pipeline.State)

Source from the content-addressed store, hash-verified

62 )
63
64 def _get_done(self, pipeline_state: pipeline.State) -> jnp.ndarray:
65 done = self._get_reward(pipeline_state) > 0.95
66 return done.astype(jnp.float32)
67
68 @property
69 def action_size(self):

Callers 2

resetMethod · 0.95
stepMethod · 0.95

Calls 1

_get_rewardMethod · 0.95

Tested by

no test coverage detected