mxnet.gluon.probability.distributions.distribution¶
Base distribution class.
Classes
|
Base class for distribution. |
- class mxnet.gluon.probability.distributions.distribution.Distribution(event_dim=None, validate_args=None)[source]¶
Bases:
objectBase class for distribution.
- Parameters:
- property arg_constraints¶
Returns a dictionary from parameter names to
Constraintobjects that should be satisfied by each parameter of this distribution. Args that are not ndarray/symbol need not appear in this dict.
- broadcast_to(batch_shape)[source]¶
Returns a new distribution instance with parameters expanded to batch_shape. This method calls numpy.broadcast_to on the parameters.
- Parameters:
batch_shape (Tuple) – The batch shape of the desired distribution.
- enumerate_support()[source]¶
Returns a tensor that contains all values supported by a discrete distribution.
- log_prob(value)[source]¶
Returns the log of the probability density/mass function evaluated at value.
- property mean¶
Returns the mean of the distribution.
- property stddev¶
Returns the standard deviation of the distribution.
- property support¶
Returns a function representing the distribution’s support.
- property variance¶
Returns the variance of the distribution.