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

Loss Function #4

Closed
wieschoo opened this issue Feb 23, 2016 · 1 comment
Closed

Loss Function #4

wieschoo opened this issue Feb 23, 2016 · 1 comment

Comments

@wieschoo
Copy link

Hi,

good work @ikostrikov ! I just wonder where the loss function:
https://github.com/ikostrikov/TensorFlow-VAE-GAN-DRAW/blob/master/main-gan.py#L60-L61
comes from?
Because it does not look like a cross entropy loss
cross

I hope you do not mind my way of asking here.

@ikostrikov
Copy link
Owner

Hi!

Thanks!

D1 and D2 have fixed labels there there was no need to write them down explicitly. Then, I took a more numerically stable formulation from:
https://www.tensorflow.org/versions/r0.7/api_docs/python/nn.html#sigmoid_cross_entropy_with_logits

Yes, sure. No problem.

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

2 participants