fix exp fam. formula
authorTongzhou Wang <ssnl@users.noreply.github.com>
Wed, 6 Mar 2019 23:35:25 +0000 (15:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 6 Mar 2019 23:47:13 +0000 (15:47 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17719

Differential Revision: D14349029

Pulled By: soumith

fbshipit-source-id: cf016756a9319436f7379e8377f8bd1e1b672b40

torch/distributions/exp_family.py

index f686863..ab4ef2e 100644 (file)
@@ -9,7 +9,7 @@ class ExponentialFamily(Distribution):
 
     .. math::
 
-        p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle) - F(\theta) + k(x))
+        p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle - F(\theta) + k(x))
 
     where :math:`\theta` denotes the natural parameters, :math:`t(x)` denotes the sufficient statistic,
     :math:`F(\theta)` is the log normalizer function for a given family and :math:`k(x)` is the carrier