Skip to main content

mrr

Function mrr 

Source
pub fn mrr<K: Clone + Eq + Hash>(results: &[(K, f32)], qrels: &Qrels<K>) -> f32
Expand description

Mean Reciprocal Rank.

Measures the rank of the first relevant document. MRR ranges from 0.0 to 1.0.

Formula: MRR = 1 / rank_of_first_relevant