pub struct EvalReport {
pub cases: Vec<CaseResult>,
}Fields§
§cases: Vec<CaseResult>Implementations§
Source§impl EvalReport
impl EvalReport
Sourcepub fn mean(&self, scorer: &str) -> f64
pub fn mean(&self, scorer: &str) -> f64
Mean of one scorer across cases (cases that errored count as 0).
Sourcepub fn pass_rate(&self, threshold: f64) -> f64
pub fn pass_rate(&self, threshold: f64) -> f64
Share of cases where every score is at least threshold.
pub fn baseline_cost(&self) -> f64
Sourcepub fn candidate_cost(&self) -> f64
pub fn candidate_cost(&self) -> f64
Candidate run cost plus scoring cost.
pub fn to_markdown(&self) -> String
Trait Implementations§
Source§impl Clone for EvalReport
impl Clone for EvalReport
Source§impl Debug for EvalReport
impl Debug 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 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