Diff of /man/loss_cl.Rd [000000] .. [409433]

Switch to side-by-side view

--- a
+++ b/man/loss_cl.Rd
@@ -0,0 +1,22 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/metrics.R
+\name{loss_cl}
+\alias{loss_cl}
+\title{Contrastive loss}
+\usage{
+loss_cl(margin = 1)
+}
+\arguments{
+\item{margin}{Integer, baseline for distance for which pairs should be classified as dissimilar.}
+}
+\value{
+A function implementing contrastive loss.
+}
+\description{
+Contrastive loss as used here: https://keras.io/examples/vision/siamese_contrastive/.
+}
+\examples{
+\dontshow{if (reticulate::py_module_available("tensorflow")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
+cl <- loss_cl(margin=1)
+\dontshow{\}) # examplesIf}
+}