pianomania/infoGAN-pytorch

what the log_gaussian loss's mean?

dongfangduoshou123 opened this issue · 2 comments

class log_gaussian:
def call(self, x, mu, var):
logli = -0.5*(var.mul(2*np.pi)+1e-6).log() -
(x-mu).pow(2).div(var.mul(2.0)+1e-6)
return logli.sum(1).mean().mul(-1)

1、What do mu and var represent?
2、I'm doubt about the log_gaussion's theory.

thank you!

Yeah, the explanation is very clear.

Thank you for your sharing!