Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
torch.distributions.exp_family.ExponentialFamily Class Reference
Inheritance diagram for torch.distributions.exp_family.ExponentialFamily:
torch.distributions.distribution.Distribution torch.distributions.bernoulli.Bernoulli torch.distributions.beta.Beta torch.distributions.dirichlet.Dirichlet torch.distributions.exponential.Exponential torch.distributions.gamma.Gamma torch.distributions.normal.Normal torch.distributions.poisson.Poisson torch.distributions.chi2.Chi2

Public Member Functions

def entropy (self)
- Public Member Functions inherited from torch.distributions.distribution.Distribution
def __init__ (self, batch_shape=torch.Size(), event_shape=torch.Size(), validate_args=None)
def expand (self, batch_shape, _instance=None)
def batch_shape (self)
def event_shape (self)
def arg_constraints (self)
def support (self)
def mean (self)
def variance (self)
def stddev (self)
def sample (self, sample_shape=torch.Size())
def rsample (self, sample_shape=torch.Size())
def sample_n (self, n)
def log_prob (self, value)
def cdf (self, value)
def icdf (self, value)
def enumerate_support (self, expand=True)
def entropy (self)
def perplexity (self)
def __repr__ (self)

Additional Inherited Members

- Static Public Member Functions inherited from torch.distributions.distribution.Distribution
def set_default_validate_args (value)
- Static Public Attributes inherited from torch.distributions.distribution.Distribution

Detailed Description

Definition at line 5 of file

Member Function Documentation

def torch.distributions.exp_family.ExponentialFamily.entropy (   self)
Method to compute the entropy using Bregman divergence of the log normalizer.

Definition at line 49 of file

The documentation for this class was generated from the following file: