ProbabilityDistribution¶
- class maze.distributions.distribution.ProbabilityDistribution¶
Base class for all probability distributions.
- deterministic_sample() Any¶
Draw a deterministic sample from the probability distribution.
- Returns:
deterministic sample tensor.
- kl(other: ProbabilityDistribution) Any¶
Calculates the Kullback-Leibler between self and the other probability distribution.
- Parameters:
other – ([float]) the distribution to compare with.
- Returns:
kl tensor.
- log_prob(actions: Any) Any¶
Returns the the log likelihood of the provided actions.
actions: the actions. :return: log likelihood tensor.