precision

Function precision 

Source
pub fn precision(returned: &[String], relevant: &[String]) -> f32
Expand description

Fraction of returned results that were relevant.

Returning nothing is treated as perfect precision — it is a recall failure, and counting it twice would hide which of the two actually went wrong.