pub struct MetricResult {
pub score: f64,
pub target: f64,
pub pass: bool,
pub note: String,
pub vacuous: bool,
}Expand description
One metric’s worth of result. pass is purely informational
(target met) — the binary’s exit code is driven by the
composite, not by individual metrics.
vacuous (v0.29.2): true when the metric had no data to
measure (e.g. no gold contradictions to recall, no novel
candidate findings to ground). Such metrics still report a
formal score of 1.0 (“vacuously satisfied”), but they are
excluded from the composite weighting. Friction #13 from sim-
user pass #2: vacuous 1.0s were inflating the composite to
~0.31 even when claim_match_rate was 0, which made the score
look like a passing grade when it really meant “no overlap
detected”.
Fields§
§score: f64§target: f64§pass: bool§note: String§vacuous: boolTrait Implementations§
Source§impl Clone for MetricResult
impl Clone for MetricResult
Source§fn clone(&self) -> MetricResult
fn clone(&self) -> MetricResult
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 MetricResult
impl Debug for MetricResult
Source§impl Default for MetricResult
impl Default for MetricResult
Source§fn default() -> MetricResult
fn default() -> MetricResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricResult
impl<'de> Deserialize<'de> for MetricResult
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
Auto Trait Implementations§
impl Freeze for MetricResult
impl RefUnwindSafe for MetricResult
impl Send for MetricResult
impl Sync for MetricResult
impl Unpin for MetricResult
impl UnsafeUnpin for MetricResult
impl UnwindSafe for MetricResult
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