Skip to content

Commit 39b6cea

Browse files
committed
fix import error for edward.inferences.conjugacy
1 parent 9d837ff commit 39b6cea

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

docs/tex/api/criticism.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ \subsubsection{Criticism}
4141

4242
.. automodule:: edward.criticisms
4343
:members: evaluate,
44-
ppc
44+
ppc,
45+
ppc_density_plot,
46+
ppc_stat_hist_plot
4547

4648
%}
4749

docs/tex/api/reference.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ \subsubsection{Inference}
3939

4040
* :class:`edward.inferences.GANInference`
4141

42+
* :class:`edward.inferences.BiGANInference`
4243
* :class:`edward.inferences.ImplicitKLqp`
4344
* :class:`edward.inferences.WGANInference`
4445

@@ -48,18 +49,23 @@ \subsubsection{Inference}
4849

4950
* :class:`edward.inferences.MonteCarlo`
5051

52+
* :class:`edward.inferences.Gibbs`
5153
* :class:`edward.inferences.MetropolisHastings`
5254
* :class:`edward.inferences.HMC`
5355
* :class:`edward.inferences.SGLD`
5456
* :class:`edward.inferences.SGHMC`
5557

58+
* :func:`edward.complete_conditional`
59+
5660
%}
5761

5862
\subsubsection{Criticism}
5963

6064
{%sphinx
6165

62-
* :func:`edward.criticisms.evaluate`
63-
* :func:`edward.criticisms.ppc`
66+
* :func:`edward.evaluate`
67+
* :func:`edward.ppc`
68+
* :func:`edward.ppc_density_plot`
69+
* :func:`edward.ppc_stat_hist_plot`
6470

6571
%}

docs/tex/iclr2017.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ \subsection{Deep Probabilistic Programming}
1212
The code snippets assume the following versions.
1313

1414
\begin{lstlisting}[language=bash]
15-
pip install edward==1.3.0
15+
pip install edward==1.3.1
1616
pip install tensorflow==1.1.0 # alternatively, tensorflow-gpu==1.1.0
1717
pip install keras==2.0.0
1818
\end{lstlisting}

docs/tex/tutorials/unsupervised.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ \subsubsection{Criticism}
191191
# Calculate likelihood for each data point and cluster assignment,
192192
# averaged over many posterior samples. ``x_post`` has shape (N, 100, K, D).
193193
mu_sample = qmu.sample(100)
194-
sigma_sample = qsigma.sample(100)
194+
sigmasq_sample = qsigmasq.sample(100)
195195
x_post = Normal(loc=tf.ones([N, 1, 1, 1]) * mu_sample,
196-
scale=tf.ones([N, 1, 1, 1]) * sigma_sample)
196+
scale=tf.ones([N, 1, 1, 1]) * tf.sqrt(sigmasq_sample))
197197
x_broadcasted = tf.tile(tf.reshape(x_train, [N, 1, 1, D]), [1, 100, K, 1])
198198

199199
# Sum over latent dimension, then average over posterior samples.

edward/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.3.0'
1+
__version__ = '1.3.1'

notebooks/iclr2017.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"\n",
99
"The code snippets assume the following versions.\n",
1010
"```bash\n",
11-
"pip install edward==1.3.0\n",
11+
"pip install edward==1.3.1\n",
1212
"pip install tensorflow==1.1.0 # alternatively, tensorflow-gpu==1.1.0\n",
1313
"pip install keras==2.0.0\n",
1414
"```"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
author='Dustin Tran',
1212
author_email="[email protected]",
1313
packages=['edward', 'edward.criticisms', 'edward.inferences',
14-
'edward.models', 'edward.util'],
14+
'edward.models', 'edward.util', 'edward.inferences.conjugacy'],
1515
install_requires=['numpy>=1.7',
1616
'six>=1.10.0'],
1717
extras_require={'tensorflow': ['tensorflow>=1.1.0rc0'],

0 commit comments

Comments
 (0)