Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adc8187

Browse files
vjaydsoumith
authored andcommitted
It should be log(1-D(G(z))) (#428)
Correction done from log(1-D(G(x))) to log(1-D(G(x))). Please review
1 parent eb1cd34 commit adc8187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/dcgan_faces_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
# :math:`D` will predict its outputs are fake (:math:`log(1-D(G(x)))`).
7575
# From the paper, the GAN loss function is
7676
#
77-
# .. math:: \underset{G}{\text{min}} \underset{D}{\text{max}}V(D,G) = \mathbb{E}_{x\sim p_{data}(x)}\big[logD(x)\big] + \mathbb{E}_{z\sim p_{z}(z)}\big[log(1-D(G(x)))\big]
77+
# .. math:: \underset{G}{\text{min}} \underset{D}{\text{max}}V(D,G) = \mathbb{E}_{x\sim p_{data}(x)}\big[logD(x)\big] + \mathbb{E}_{z\sim p_{z}(z)}\big[log(1-D(G(z)))\big]
7878
#
7979
# In theory, the solution to this minimax game is where
8080
# :math:`p_g = p_{data}`, and the discriminator guesses randomly if the

0 commit comments

Comments
 (0)