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

Method entropy_loss

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

Source from the content-addressed store, hash-verified

75 return sum_independent_dims(log_prob)
76
77 def entropy_loss(self) -> th.Tensor:
78 entropy_loss = -1.0 * self.distribution.entropy()
79 return th.mean(entropy_loss)
80
81 def exploration_loss(self, exploration_suggests) -> th.Tensor:
82 # [('stop'/'go'/None, 'turn'/'straight'/None)]

Callers

nothing calls this directly

Calls 1

entropyMethod · 0.80

Tested by

no test coverage detected