Bernoulli
Bernoulli distribution for sampling actions for 'MultiBinary' tasks.
Methods:
.probs
Return probabilities.
.logits
Returns the unnormalized log probabilities.
.sample
Generates a sample_shape shaped sample or sample_shape shaped batch of samples if the distribution parameters are batched.
Args
- sample_shape (th.Size) : The size of the sample to be drawn.
Returns
A sample_shape shaped sample.
.log_prob
Returns the log of the probability density/mass function evaluated at actions.
Args
- actions (th.Tensor) : The actions to be evaluated.
Returns
The log_prob value.
.entropy
Returns the Shannon entropy of distribution.
.mode
Returns the mode of the distribution.
.mean
Returns the mean of the distribution.