Skip to main content

mrr

Function mrr 

Source
pub fn mrr(ranked: &[String], relevant: &[String]) -> f64
Expand description

Mean Reciprocal Rank of the first relevant item in ranked (1-based).

Returns 1/rank where rank is the 1-based position of the first relevant item. Returns 0.0 when no relevant item appears in ranked.