GitXplorerGitXplorer
t

eval_gen

public
130 stars
23 forks
3 issues

Commits

List of commits on branch master.
Unverified
7625f402ab6f61762ad4da6377acdf00577aea62

Update README.md

ttonywu95 committed 7 years ago
Unverified
36e7cf83470b21acdfda019dddf379389b40e94f

Create License.txt

ttonywu95 committed 8 years ago
Unverified
84bb4db44a2b838a012f78e85897d488b8769dd2

edit readme

ttonywu95 committed 8 years ago
Unverified
4d84edd7eb7ead78a216fd99c0d0d2b97dbecbad

Update README.md

ttonywu95 committed 8 years ago
Unverified
0549969d9b3566389443a8d74fe94a693688fc87

delete unnecessary stuff

ttonywu95 committed 8 years ago
Unverified
47c09e01e7de80b8d203e38d9e58b6b067df5016

Merge branch 'master' of https://github.com/tonywu95/eval_gen

ttonywu95 committed 8 years ago

README

The README file for this repository.

#On the Quantitative Analysis of Decoder-Based Models

Dependencies: Theano, Lasagne

##Evaluate the models:

To evaluate a decoder-based generative model:

  1. You need to provide your decoder gen in the form of a python function, which takes in a theano tensor variable Z (latent) and outputs a theano tensor variable X (the sample) (an example can be found in line 84-85 in ./lib/utils.py),
     def gen(Z):
       ... 
       return X

and modify the model loading procedure in load_model function at ./lib/utils.py.

  1. Modify the data loading procedure at ./lib/utils.py (e.g. load_mnist), including validation/training split. Or for loading another dataset.

  2. If you're evaluating your model on a dataset other than MNIST, you need to modify the data dimension in ./sampling/sampler.py, at line 19 and 20, and modify the procedure of calculating data likelihood at line 113 and 117. An example can be found at ./sampling/svhn_sampler.py

  3. Various command instruction can be found at comment after the command.

  4. Run function main(*args) in ./experiment/run.py

##Visualize posterior samples:

  1. mkdir ./vis
  2. Run function main(*args) in ./experiment/run.py, with plot_posterior set to 1.
  3. For visualizing the posterior samples of a particular digit X, set exps to "postXtra" for digit in training set and "postXval" for digit in validation set.

See an tensorflow implementation: https://github.com/jiamings/ais