Skip to main content

Module metrics

Module metrics 

Source
Expand description

Core coherence metrics for attention mechanism evaluation.

Structs§

DeltaMetric
Result of comparing baseline vs. gated attention outputs.

Functions§

contradiction_rate
Measures the rate of contradictory outputs (negative dot product) between pairs.
delta_behavior
Computes the behavioral delta between baseline and gated attention outputs.
entailment_consistency
Mean pairwise cosine similarity between consecutive output vectors.