loss {gnn} | R Documentation |
Implementation of various loss functions to measure statistical discrepancy between two datasets.
loss(x, y, type = c("MSE", "binary.cross", "MMD"), ...)
x |
2d tensor with shape (batch size, dimension of input dataset). |
y |
2d tensor with shape (batch size, dimension of input dataset). |
type |
|
... |
additional arguments passed to the underlying loss function;
at the moment, this is only affects |
loss()
returns a 0d tensor containing the loss.
Marius Hofert and Avinash Prasad
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
GMMN_model()
where loss()
is used.