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

Method update_distribution

humanoidverse/agents/modules/ppo_modules.py:63–65  ·  view source on GitHub ↗
(self, actor_obs)

Source from the content-addressed store, hash-verified

61 return self.distribution.entropy().sum(dim=-1)
62
63 def update_distribution(self, actor_obs):
64 mean = self.actor(actor_obs)
65 self.distribution = Normal(mean, mean*0. + self.std)
66
67 def act(self, actor_obs, **kwargs):
68 self.update_distribution(actor_obs)

Callers 1

actMethod · 0.95

Calls 1

actorMethod · 0.95

Tested by

no test coverage detected