pixyz.losses (Loss API)¶
Loss¶
Negative expected value of log-likelihood (entropy)¶
CrossEntropy¶
Entropy¶
StochasticReconstructionLoss¶
-
class
pixyz.losses.
StochasticReconstructionLoss
(encoder, decoder, input_var=None)[source]¶ Bases:
pixyz.losses.losses.Loss
Reconstruction Loss (Monte Carlo approximation).
where
.
- Note:
- This class is a special case of the CrossEntropy class. You can get the same result with CrossEntropy.
-
loss_text
¶
Negative log-likelihood¶
Lower bound¶
Divergence¶
Similarity¶
SimilarityLoss¶
-
class
pixyz.losses.
SimilarityLoss
(p1, p2, input_var=None, var=['z'], margin=0)[source]¶ Bases:
pixyz.losses.losses.Loss
Learning Modality-Invariant Representations for Speech and Images (Leidai et. al.)