Enum AttentionMatchingMode
- Namespace
- AiDotNet.KnowledgeDistillation.Strategies
- Assembly
- AiDotNet.dll
Defines how to match attention patterns between teacher and student.
public enum AttentionMatchingMode
Fields
Cosine = 2Cosine similarity - focuses on direction/pattern rather than magnitude.
KL = 1KL Divergence - treats attention as probability distribution, preserves structure.
MSE = 0Mean Squared Error - simple, fast, treats all attention weights equally.