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

Method act

humanoidverse/agents/modules/ppo_modules.py:67–69  ·  view source on GitHub ↗
(self, actor_obs, **kwargs)

Source from the content-addressed store, hash-verified

65 self.distribution = Normal(mean, mean*0. + self.std)
66
67 def act(self, actor_obs, **kwargs):
68 self.update_distribution(actor_obs)
69 return self.distribution.sample()
70
71 def get_actions_log_prob(self, actions):
72 return self.distribution.log_prob(actions).sum(dim=-1)

Callers 4

_actor_act_stepMethod · 0.45
_actor_act_stepMethod · 0.45
_update_daggerMethod · 0.45
_actor_act_stepMethod · 0.45

Calls 1

update_distributionMethod · 0.95

Tested by

no test coverage detected