mxnet.gluon.probability.distributions.half_normal¶
Half-normal Distribution
Classes
|
Create a half normal object, where |
- class mxnet.gluon.probability.distributions.half_normal.HalfNormal(scale=1.0, validate_args=None)[source]¶
Bases:
TransformedDistribution- Create a half normal object, where
X ~ Normal(0, scale) Y = |X| ~ HalfNormal(scale)
- Parameters:
scale (Tensor or scalar, default 1) – Scale of the full Normal distribution.
- log_prob(value)[source]¶
Compute log-likelihood of value with log_det_jacobian and log-likelihood of the base distribution according to the following conclusion:
Given that Y = T(X), log(p(y)) = log(p(x)) - log(|dy/dx|)
- property mean¶
Returns the mean of the distribution.
- property variance¶
Returns the variance of the distribution.