DiagonalGaussian
Diagonal Gaussian distribution for 'Box' tasks.
Methods:
.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.
.rsample
Generates a sample_shape shaped reparameterized sample or sample_shape shaped batch of reparameterized 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.
.mean
Returns the mean of the distribution.
.mode
Returns the mode of the distribution.
.stddev
Returns the standard deviation of the distribution.
.variance
Returns the variance of the distribution.
.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.