Keras 3 API documentation / KerasCV / Losses / SimCLR Loss

SimCLR Loss

[source]

SimCLRLoss class

keras_cv.losses.SimCLRLoss(temperature, **kwargs)

Implements SimCLR Cosine Similarity loss.

SimCLR loss is used for contrastive self-supervised learning.

Arguments

  • temperature: a float value between 0 and 1, used as a scaling factor for cosine similarity.

References