abdulfatir / abdulfatir/IWAE-tensorflow

Issue with _objective function

Offen
#1 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
4
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I noticed that there is something that seems like a bug to me with the _objective function, more specifically with calculating the logp(z|x):
`log_QzGx = (-(self.z_dim / 2) * log2pi + tf.reduce_sum(- tf.log(sigma) - 0.5 * tf.squared_difference(z, mu) / (2 * tf.square(sigma)), -1))`
In the second part you multiply with 0.5 and then divide by 2, one of these operations seems redundant and the result could be wrong.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.