Table of Contents

Enum ContrastiveLossType

Namespace
AiDotNet.Enums
Assembly
AiDotNet.dll

Types of contrastive loss functions for knowledge distillation.

public enum ContrastiveLossType

Fields

InfoNCE = 0

InfoNCE (Noise Contrastive Estimation) loss.

NTXent = 2

NT-Xent (Normalized Temperature-scaled Cross Entropy) loss.

TripletLoss = 1

Triplet loss with margin.