Skip to main content

joint_coverage

Function joint_coverage 

Source
pub fn joint_coverage(
    covered: &[Vec<bool>],
) -> Result<JointCoverage, MetricError>
Expand description

Compute joint and marginal coverage from a row-major coverage matrix: covered[i][q] is true when row i’s prediction set for question q covered the realized label.

§Errors

MetricError::EmptyInput on zero rows or zero questions; MetricError::LengthMismatch on a ragged matrix.