pub struct EvalReport {
pub rows: Vec<Row>,
pub n: u64,
pub precision_correct: u64,
pub recall_correct: u64,
pub single_total: u64,
pub single_correct: u64,
pub multi_total: u64,
pub multi_correct: u64,
pub match_threshold: f64,
}Expand description
Full evaluation result over a corpus.
Fields§
§rows: Vec<Row>§n: u64§precision_correct: u64§recall_correct: u64§single_total: u64§single_correct: u64§multi_total: u64§multi_correct: u64§match_threshold: f64Implementations§
Source§impl EvalReport
impl EvalReport
pub fn accuracy(&self) -> f64
pub fn recall(&self) -> f64
pub fn wilson_lower(&self) -> f64
pub fn single_accuracy(&self) -> f64
pub fn multi_accuracy(&self) -> f64
pub fn status(&self) -> GateStatus
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
One-line machine-readable summary for a panic/assert message.
Trait Implementations§
Source§impl Clone for EvalReport
impl Clone for EvalReport
Source§fn clone(&self) -> EvalReport
fn clone(&self) -> EvalReport
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 moreAuto Trait Implementations§
impl Freeze for EvalReport
impl RefUnwindSafe for EvalReport
impl Send for EvalReport
impl Sync for EvalReport
impl Unpin for EvalReport
impl UnsafeUnpin for EvalReport
impl UnwindSafe for EvalReport
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