MCPcopy Create free account
hub / github.com/TeleHuman/PBHC / step

Method step

humanoidverse/utils/noise_tool.py:67–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.x[mask] = self.randn(torch.sum(mask)) * self.sigma / np.sqrt(2 * self.theta) + self.mu
66
67 def step(self):
68 self.x = self.x + self.theta * (self.mu - self.x) * self.dt + self.sigma * self.randn(*self.shape) * np.sqrt(self.dt)
69 return self.x
70
71class WhiteNoise(NoiseProcess):
72 def __init__(self, shape: Tuple[int, ...], mu: float = 0, sigma: float = 1, **kwargs):

Callers 15

_apply_actionMethod · 0.45
_rollout_stepMethod · 0.45
_update_ppoMethod · 0.45
env_stepMethod · 0.45
env_stepMethod · 0.45
_rollout_stepMethod · 0.45
_update_ppoMethod · 0.45
_update_daggerMethod · 0.45
_update_distillMethod · 0.45
env_stepMethod · 0.45
_rollout_stepMethod · 0.45
_update_ppoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected