pub struct FieldMetrics {
pub field: String,
pub family: String,
pub n: usize,
pub ece: f64,
pub brier: f64,
pub sce: Option<f64>,
pub ace: Option<f64>,
pub rps: Option<f64>,
}Expand description
One question field’s measured metrics (one row of the macro rule).
Fields§
§field: StringQuestion field identifier (question id / field name in the question set).
family: StringWorkflow family this field’s rows were drawn from.
n: usizeNumber of observations measured.
ece: f64Top-label ECE (equal-mass, GATE_BIN_COUNT bins). Primary for noul/choice.
brier: f64Multiclass Brier score.
sce: Option<f64>Class-wise static calibration error. Present for score fields (P1.4 leg c).
ace: Option<f64>Class-wise adaptive calibration error. Present for score fields.
rps: Option<f64>Ranked probability score. Present for score fields.
Trait Implementations§
Source§impl Clone for FieldMetrics
impl Clone for FieldMetrics
Source§fn clone(&self) -> FieldMetrics
fn clone(&self) -> FieldMetrics
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 FieldMetrics
impl Debug for FieldMetrics
Source§impl<'de> Deserialize<'de> for FieldMetrics
impl<'de> Deserialize<'de> for FieldMetrics
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 FieldMetrics
impl PartialEq for FieldMetrics
Source§fn eq(&self, other: &FieldMetrics) -> bool
fn eq(&self, other: &FieldMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FieldMetrics
impl Serialize for FieldMetrics
impl StructuralPartialEq for FieldMetrics
Auto Trait Implementations§
impl Freeze for FieldMetrics
impl RefUnwindSafe for FieldMetrics
impl Send for FieldMetrics
impl Sync for FieldMetrics
impl Unpin for FieldMetrics
impl UnsafeUnpin for FieldMetrics
impl UnwindSafe for FieldMetrics
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