BernoulliDistribution¶
- class probly.representation.distribution.BernoulliDistribution(*args, **kwargs)[source]¶
Bases:
CategoricalDistribution,GenericBase class for Bernoulli distributions.
Bernoulli distributions are represented by the probability of class 1 and can be viewed as two-class categorical distributions.
- abstract property log_probabilities: T¶
Get the log probabilities of the categorical distribution.
- abstract property logits: T¶
Get logits of the categorical distribution.
- abstract property probabilities: T¶
Get the probabilities of the categorical distribution.
- abstractmethod to_categorical() CategoricalDistribution[source]¶
Convert to a two-class categorical distribution.
- abstract property unnormalized_probabilities: T¶
Get unnormalized probabilities of the categorical distribution.