MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / entropy_loss

Method entropy_loss

roach/models/distributions.py:228–230  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

226 return sum_independent_dims(log_prob)
227
228 def entropy_loss(self) -> th.Tensor:
229 entropy_loss = -1.0 * self.distribution.entropy()
230 return th.mean(entropy_loss)
231
232 def exploration_loss(self, exploration_suggests) -> th.Tensor:
233 # [('stop'/'go'/None, 'turn'/'straight'/None)]

Callers 1

evaluate_actionsMethod · 0.45

Calls 1

entropyMethod · 0.80

Tested by

no test coverage detected