pub struct JointCoverage {
pub n: usize,
pub n_questions: usize,
pub marginals: Vec<f64>,
pub joint: f64,
pub independence_reference: f64,
}Expand description
Joint-coverage report for a batch of multi-question rows.
Fields§
§n: usizeNumber of rows.
n_questions: usizeNumber of questions per row.
marginals: Vec<f64>Per-question marginal coverage.
joint: f64Fraction of rows in which every question’s prediction set covered the true label.
independence_reference: f64Product of the marginals — the joint coverage that question independence would
imply. The gap joint − independence_reference measures error correlation
across questions on the same state.
Trait Implementations§
Source§impl Clone for JointCoverage
impl Clone for JointCoverage
Source§fn clone(&self) -> JointCoverage
fn clone(&self) -> JointCoverage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JointCoverage
impl Debug for JointCoverage
Source§impl<'de> Deserialize<'de> for JointCoverage
impl<'de> Deserialize<'de> for JointCoverage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JointCoverage
impl PartialEq for JointCoverage
Source§fn eq(&self, other: &JointCoverage) -> bool
fn eq(&self, other: &JointCoverage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JointCoverage
impl Serialize for JointCoverage
impl StructuralPartialEq for JointCoverage
Auto Trait Implementations§
impl Freeze for JointCoverage
impl RefUnwindSafe for JointCoverage
impl Send for JointCoverage
impl Sync for JointCoverage
impl Unpin for JointCoverage
impl UnsafeUnpin for JointCoverage
impl UnwindSafe for JointCoverage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more