pub struct EvalMetrics {
pub fabricated_entity_rate: f64,
pub statement_precision: f64,
pub statement_recall: f64,
pub statement_f1: f64,
}Expand description
Quality metrics computed from an extraction run against golden annotations.
Fields§
§fabricated_entity_rate: f64Entities extracted that don’t appear in the source text. Structural hard zero.
statement_precision: f64Correct statements / total extracted statements.
statement_recall: f64Correct statements / total expected statements.
statement_f1: f64Harmonic mean of precision and recall (for statements).
Implementations§
Source§impl EvalMetrics
impl EvalMetrics
Sourcepub fn check_gates(&self) -> Result<(), String>
pub fn check_gates(&self) -> Result<(), String>
Check §14.2 quality gates. Returns Err with details if any gate fails.
Trait Implementations§
Source§impl Clone for EvalMetrics
impl Clone for EvalMetrics
Source§fn clone(&self) -> EvalMetrics
fn clone(&self) -> EvalMetrics
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 EvalMetrics
impl Debug for EvalMetrics
Source§impl<'de> Deserialize<'de> for EvalMetrics
impl<'de> Deserialize<'de> for EvalMetrics
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 EvalMetrics
impl RefUnwindSafe for EvalMetrics
impl Send for EvalMetrics
impl Sync for EvalMetrics
impl Unpin for EvalMetrics
impl UnsafeUnpin for EvalMetrics
impl UnwindSafe for EvalMetrics
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