Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generative adversarial nets as implicit distribution #62

Open
masa-su opened this issue Mar 16, 2017 · 0 comments
Open

Generative adversarial nets as implicit distribution #62

masa-su opened this issue Mar 16, 2017 · 0 comments

Comments

@masa-su
Copy link
Owner

masa-su commented Mar 16, 2017

We would like to implement generative adversarial nets as "implicit distribution" as follows:

z = InputLayer((None, z_dim))
g  = batch_norm(DenseLayer(z,num_units=512,nonlinearity=activation))
g  = batch_norm(DenseLayer(g,num_units=512,nonlinearity=activation))
g_mean = DenseLayer(g,num_units=x_dim,nonlinearity=sigmoid)
g = Deterministic(g_mean,given=[z]) #p(x|z)

x = InputLayer((None, x_dim))
d_0  = DenseLayer(x,num_units=512,nonlinearity=leaky_rectify)
d_1  = DenseLayer(d_0,num_units=512,nonlinearity=leaky_rectify)
d_mean = DenseLayer(d_1,num_units=1,nonlinearity=sigmoid)
d = Bernoulli(d_mean,given=[x])

p = ImplicitDistribution(mean=g, loss=d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant