Skip to content

Commit a212019

Browse files
ferrinetwiecki
authored andcommitted
pretty operators
1 parent cfb9035 commit a212019

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pymc3/variational/operators.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class KL(Operator):
1313
"""
1414
Operator based on Kullback Leibler Divergence
15+
1516
.. math::
1617
1718
KL[q(v)||p(v)] = \int q(v)\log\\frac{q(v)}{p(v)}dv
@@ -41,20 +42,22 @@ class KSD(Operator):
4142
Operator based on Kernelized Stein Discrepancy
4243
4344
Input: A target distribution with density function :math:`p(x)`
44-
and a set of initial particles :math:`{x^0_i}^n_{i=1}`
45-
Output: A set of particles :math:`{x_i}^n_{i=1}` that approximates the target distribution.
45+
and a set of initial particles :math:`\{x^0_i\}^n_{i=1}`
46+
Output: A set of particles :math:`\{x_i\}^n_{i=1}` that approximates the target distribution.
47+
4648
.. math::
4749
4850
x_i^{l+1} \leftarrow \epsilon_l \hat{\phi}^{*}(x_i^l)
4951
\hat{\phi}^{*}(x) = \frac{1}{n}\sum^{n}_{j=1}[k(x^l_j,x) \nabla_{x^l_j} logp(x^l_j)+ \nabla_{x^l_j} k(x^l_j,x)]
5052
5153
Parameters
5254
----------
53-
approx : pm.Empirical
55+
approx : :class:`pm.Empirical`
56+
Empirical Approximation used for inference
5457
5558
References
5659
----------
57-
- Qiang Liu, Dilin Wang (2016)
60+
- Qiang Liu, Dilin Wang (2016)
5861
Stein Variational Gradient Descent: A General Purpose Bayesian Inference Algorithm
5962
arXiv:1608.04471
6063
"""

0 commit comments

Comments
 (0)