ray.rllib.models.distributions.Distribution.to_deterministic#

Distribution.to_deterministic() Distribution[source]#

Returns a deterministic equivalent for this distribution.

Specifically, the deterministic equivalent for a Categorical distribution is a Deterministic distribution that selects the action with maximum logit value. Generally, the choice of the deterministic replacement is informed by established conventions.