pub struct EvaluationResult {
pub score: f64,
pub results: Vec<(Example, Prediction, f64)>,
}Expand description
The result of an evaluation run.
Fields§
§score: f64Aggregate score: percentage of examples that scored > 0.
results: Vec<(Example, Prediction, f64)>Per-example results in input order: (example, prediction, metric_score).
Implementations§
Source§impl EvaluationResult
impl EvaluationResult
Sourcepub fn num_examples(&self) -> usize
pub fn num_examples(&self) -> usize
Number of examples evaluated (excludes errors).
Sourcepub fn num_correct(&self) -> usize
pub fn num_correct(&self) -> usize
Number of examples that scored > 0.
Trait Implementations§
Source§impl Clone for EvaluationResult
impl Clone for EvaluationResult
Source§fn clone(&self) -> EvaluationResult
fn clone(&self) -> EvaluationResult
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 EvaluationResult
impl RefUnwindSafe for EvaluationResult
impl Send for EvaluationResult
impl Sync for EvaluationResult
impl Unpin for EvaluationResult
impl UnsafeUnpin for EvaluationResult
impl UnwindSafe for EvaluationResult
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