deepof.model_utils.nce_loss

deepof.model_utils.nce_loss(history, future, similarity, temperature=0.1)

Compute the NCE loss function, as described in the paper “A Simple Framework for Contrastive Learning of Visual Representations” (https://arxiv.org/abs/2002.05709).