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

Switch to unified view

a b/man/loss_cl.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/metrics.R
3
\name{loss_cl}
4
\alias{loss_cl}
5
\title{Contrastive loss}
6
\usage{
7
loss_cl(margin = 1)
8
}
9
\arguments{
10
\item{margin}{Integer, baseline for distance for which pairs should be classified as dissimilar.}
11
}
12
\value{
13
A function implementing contrastive loss.
14
}
15
\description{
16
Contrastive loss as used here: https://keras.io/examples/vision/siamese_contrastive/.
17
}
18
\examples{
19
\dontshow{if (reticulate::py_module_available("tensorflow")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
20
cl <- loss_cl(margin=1)
21
\dontshow{\}) # examplesIf}
22
}