pub struct EvalReport { /* private fields */ }Expand description
The result of scoring an eval suite: every CaseResult in suite order plus
the aggregate accuracy.
accuracy is derived at construction from the cases (aggregate), never
set independently (§1.1). The serialized shape — cases, accuracy — is the
eval artifact a built site embeds without re-scoring.
Implementations§
Source§impl EvalReport
impl EvalReport
Sourcepub fn new(cases: Vec<CaseResult>) -> Self
pub fn new(cases: Vec<CaseResult>) -> Self
Assemble a report from scored cases, deriving the aggregate accuracy so
it cannot disagree with the per-case results.
Sourcepub fn cases(&self) -> &[CaseResult]
pub fn cases(&self) -> &[CaseResult]
The scored cases, in suite order.
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 · 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 EvalReport
impl Debug for EvalReport
Source§impl PartialEq for EvalReport
impl PartialEq for EvalReport
Source§impl Serialize for EvalReport
impl Serialize for EvalReport
impl StructuralPartialEq for EvalReport
Auto Trait Implementations§
impl Freeze for EvalReport
impl RefUnwindSafe for EvalReport
impl Send for EvalReport
impl Sync for EvalReport
impl Unpin 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