Method

$$$$def expectation(l):

N=10000

return mean(l() for _ in range(N))

L_GAN(D, G) == expectation(lambda: (x, c) = sample(P(x)); log(D(x)

)) + expectation(lambda: z = sample(P_z); log((1 - D(G(z)))))

Method

$$$$def expectation(l):

N=10000

return mean(l() for _ in range(N))

L_cGAN(D, G) == expectation(lambda: (x, c) = sample(P(x, c));

log(D(x, c))) + expectation(lambda: log((1 - D(G(z, c), c))))

Method

$$$$def expectation(l):

N=10000

return mean(l() for _ in range(N))

I_f(x, delta) == G(expectation(lambda: x), c_f(x, delta))

Method

$$$$def expectation(l):

N=10000

return mean(l() for _ in range(N))

L_GAN(D, G) == expectation(lambda: (x, c) = sample(P(x)); log(D(x)

)) + expectation(lambda: z = sample(P_z); log((1 - D(G(z)))))

Method

$$$$def expectation(l):

N=10000

return mean(l() for _ in range(N))

L_cGAN(D, G) == expectation(lambda: (x, c) = sample(P(x, c));

log(D(x, c))) + expectation(lambda: log((1 - D(G(z, c), c))))

Method

$$$$def expectation(l):

N=10000

return mean(l() for _ in range(N))

I_f(x, delta) == G(expectation(lambda: x), c_f(x, delta))