Table of Contents

Enum ContrastiveMode

Namespace
AiDotNet.KnowledgeDistillation.Strategies
Assembly
AiDotNet.dll

Defines the contrastive learning mode.

public enum ContrastiveMode

Fields

InfoNCE = 0

InfoNCE (Noise Contrastive Estimation) - most common, used in SimCLR, MoCo.

NTXent = 2

NT-Xent (Normalized Temperature-scaled Cross Entropy) - symmetric version.

TripletLoss = 1

Triplet loss - anchor-positive-negative triplets.