loss_cl | R Documentation |
Contrastive loss as used here: https://keras.io/examples/vision/siamese_contrastive/.
loss_cl(margin = 1)
margin |
Integer, baseline for distance for which pairs should be classified as dissimilar. |
A function implementing contrastive loss.
cl <- loss_cl(margin=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.