deepof.model_utils.hard_loss

deepof.model_utils.hard_loss(history, future, similarity, temperature, beta=0.0, debiased=True, tau_plus=0.1)

Compute the Hard loss function, as described in the paper “Contrastive Learning with Hard Negative Samples” (https://arxiv.org/abs/2011.03343).