zhusuan.distributions.bernoulli¶
- class Bernoulli(dtype='float32', param_dtype='float32', is_continues=False, is_reparameterized=True, group_ndims=0, **kwargs)[source]¶
Bases:
zhusuan.distributions.base.DistributionThe class of univariate Bernoulli distribution. See
Distributionfor details. :param probs: A float Var. The log-odds of probabilities of being 1.\[\mathrm{logits} = \log \frac{p}{1 - p}\]- Parameters
dtype – The value type of samples from the distribution. Can be int (int16, int32, int64) or float (float16, float32, float64). Default is float32.
group_ndims – A 0-D int32 Tensor representing the number of dimensions in batch_shape (counted from the end) that are grouped into a single event, so that their probabilities are calculated together. Default is 0, which means a single value is an event. See
Distributionfor more detailed explanation.
- property probs¶