Skip to content

Commit

Permalink
Add a pyro.contrib.cevae module (#2202)
Browse files Browse the repository at this point in the history
* Refactor and add docs to pyro.contrib.cevae

* Add smoke tests

* Add link to docs

* Fix typos

* Install graphviz on travis

* Add a jit_trace method

* Improve jit support; move example

* Rename method

* Get CEVAE to work on large real dataset

* Support batching in CEVAE.ite()

* Generalize to Bernoulli or Normal outcomes

* Fix clamping bounds

* Add StudentT observation distribution

* Add Exponential outcome distribution

* Add LaplaceNet

* Fix architecture according to original code

* Address review comment

* Fix placement of activations in twin networks

* Fix sign errors
  • Loading branch information
fritzo authored and eb8680 committed Dec 6, 2019
1 parent 945dbbb commit 1b0194f
Show file tree
Hide file tree
Showing 9 changed files with 850 additions and 344 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ addons:
- gcc-8
- g++-8
- ninja-build
- graphviz # for sphinx docs

cache:
directories:
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'sphinx.ext.ifconfig', #
'sphinx.ext.viewcode', #
'sphinx.ext.githubpages', #
'sphinx.ext.graphviz', #
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
]
Expand Down
82 changes: 82 additions & 0 deletions docs/source/contrib.cevae.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
Causal Effect VAE
=================

.. automodule:: pyro.contrib.cevae

CEVAE Class
-----------
.. autoclass:: pyro.contrib.cevae.CEVAE
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

CEVAE Components
----------------
.. autoclass:: pyro.contrib.cevae.Model
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.Guide
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.TraceCausalEffect_ELBO
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

Utilities
---------
.. autoclass:: pyro.contrib.cevae.FullyConnected
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.DistributionNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.BernoulliNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.ExponentialNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.LaplaceNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.NormalNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.StudentTNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autoclass:: pyro.contrib.cevae.DiagNormalNet
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Pyro Documentation

contrib.autoname
contrib.bnn
contrib.cevae
contrib.easyguide
contrib.examples
contrib.gp
Expand Down
Loading

0 comments on commit 1b0194f

Please sign in to comment.