loss {gnn} | R Documentation |
Loss Function
Description
Implementation of various loss functions to measure statistical discrepancy between two datasets.
Usage
loss(x, y, type = c("MMD", "CvM", "MSE", "BCE"), ...)
MMD(x, y, ...)
CvM(x, y)
Arguments
x |
2d-tensor or |
y |
2d-tensor or |
type |
|
... |
additional arguments passed to the underlying functions,
most notably |
Value
loss()
returns a 0d tensor containing the loss.
MMD()
and CvM()
return a 0d tensor (if x
and y
are tensors) or numeric(1)
(if x
or
y
are R matrices).
Author(s)
Marius Hofert and Avinash Prasad
References
Kingma, D. P. and Welling, M. (2014). Stochastic gradient VB and the variational auto-encoder. Second International Conference on Learning Representations (ICLR). See https://keras.rstudio.com/articles/examples/variational_autoencoder.html
RĂ©millard, B. and Scaillet, O. (2009). Testing for equality between two copulas. Journal of Multivariate Analysis 100, 377–386.
See Also
FNN()
where loss()
is used.