AppliedAIPrep logoAppliedAI/Prep
📊 Evaluation & ML Foundations
Core

Contrastive and Metric Learning

Contrastive learning trains embeddings by comparison: pull similar (positive) pairs together and push dissimilar (negative) pairs apart, so distance encodes similarity. It powers retrieval embeddings, CLIP's shared text-image space, face recognition, and self-supervised pretraining. Quality hinges on the number and difficulty of negatives. Applied-AI interviews probe it because it is how the embeddings under search, RAG, and recommendation are actually trained, and because 'where do good embeddings come from?' has a concrete answer.

a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
COMPANIES THAT ASSUME THIS
NEXT IN EVALUATION & ML FOUNDATIONSLLM-as-a-Judge