Skip to content

Commit

Permalink
fix import error for edward.inferences.conjugacy
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinvtran committed Apr 27, 2017
1 parent 9d837ff commit 39b6cea
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/tex/api/criticism.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ \subsubsection{Criticism}

.. automodule:: edward.criticisms
:members: evaluate,
ppc
ppc,
ppc_density_plot,
ppc_stat_hist_plot

%}

Expand Down
10 changes: 8 additions & 2 deletions docs/tex/api/reference.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ \subsubsection{Inference}

* :class:`edward.inferences.GANInference`

* :class:`edward.inferences.BiGANInference`
* :class:`edward.inferences.ImplicitKLqp`
* :class:`edward.inferences.WGANInference`

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

* :class:`edward.inferences.MonteCarlo`

* :class:`edward.inferences.Gibbs`
* :class:`edward.inferences.MetropolisHastings`
* :class:`edward.inferences.HMC`
* :class:`edward.inferences.SGLD`
* :class:`edward.inferences.SGHMC`

* :func:`edward.complete_conditional`

%}

\subsubsection{Criticism}

{%sphinx

* :func:`edward.criticisms.evaluate`
* :func:`edward.criticisms.ppc`
* :func:`edward.evaluate`
* :func:`edward.ppc`
* :func:`edward.ppc_density_plot`
* :func:`edward.ppc_stat_hist_plot`

%}
2 changes: 1 addition & 1 deletion docs/tex/iclr2017.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ \subsection{Deep Probabilistic Programming}
The code snippets assume the following versions.

\begin{lstlisting}[language=bash]
pip install edward==1.3.0
pip install edward==1.3.1
pip install tensorflow==1.1.0 # alternatively, tensorflow-gpu==1.1.0
pip install keras==2.0.0
\end{lstlisting}
Expand Down
4 changes: 2 additions & 2 deletions docs/tex/tutorials/unsupervised.tex
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ \subsubsection{Criticism}
# Calculate likelihood for each data point and cluster assignment,
# averaged over many posterior samples. ``x_post`` has shape (N, 100, K, D).
mu_sample = qmu.sample(100)
sigma_sample = qsigma.sample(100)
sigmasq_sample = qsigmasq.sample(100)
x_post = Normal(loc=tf.ones([N, 1, 1, 1]) * mu_sample,
scale=tf.ones([N, 1, 1, 1]) * sigma_sample)
scale=tf.ones([N, 1, 1, 1]) * tf.sqrt(sigmasq_sample))
x_broadcasted = tf.tile(tf.reshape(x_train, [N, 1, 1, D]), [1, 100, K, 1])

# Sum over latent dimension, then average over posterior samples.
Expand Down
2 changes: 1 addition & 1 deletion edward/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.0'
__version__ = '1.3.1'
2 changes: 1 addition & 1 deletion notebooks/iclr2017.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"The code snippets assume the following versions.\n",
"```bash\n",
"pip install edward==1.3.0\n",
"pip install edward==1.3.1\n",
"pip install tensorflow==1.1.0 # alternatively, tensorflow-gpu==1.1.0\n",
"pip install keras==2.0.0\n",
"```"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
author='Dustin Tran',
author_email="dustin@cs.columbia.edu",
packages=['edward', 'edward.criticisms', 'edward.inferences',
'edward.models', 'edward.util'],
'edward.models', 'edward.util', 'edward.inferences.conjugacy'],
install_requires=['numpy>=1.7',
'six>=1.10.0'],
extras_require={'tensorflow': ['tensorflow>=1.1.0rc0'],
Expand Down

0 comments on commit 39b6cea

Please sign in to comment.