Skip to content

Question about loss equation from blog #9

@gunshi

Description

@gunshi

loss
Hi,
Comparing the explicit GMM VAE code with the loss equation from the blog, I'm confused about the missing term :
$\mathbb{E}_{q(y, z | x)} [\ln \frac{p(y)}{q(y | x)} ] $
(expectation of log(p(y)/q(y|x))-- the first term)
from the loss calculation here:

def labeled_loss(x, px_logit, z, zm, zv, zm_prior, zv_prior):

loss = tf.add_n([nent] + [qy[:, i] * losses[i] for i in xrange(k)])

and in the notebook as well.
It would be great if you could clarify the reason for that
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions