#[non_exhaustive]pub struct EvalReport {
pub schema_version: u32,
pub graphrt_version: String,
pub suite: String,
pub description: Option<String>,
pub workflow: WorkflowInfo,
pub started_at_ms: u64,
pub summary: Summary,
pub cases: Vec<CaseSummary>,
pub calibration: Option<CalibrationSummary>,
pub baseline: Option<BaselineComparison>,
pub tests: Vec<TestResult>,
}Expand description
The full report (--output results.json).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: u32§graphrt_version: Stringgraphrt-eval version that produced the report.
suite: StringThe eval file.
description: Option<String>§workflow: WorkflowInfo§started_at_ms: u64Unix time in milliseconds when the evaluation started.
summary: Summary§cases: Vec<CaseSummary>Per test case over its trials (with more than one trial or a pass_hat_k gate).
calibration: Option<CalibrationSummary>Judge agreement with the human labels (calibration suites).
baseline: Option<BaselineComparison>The comparison with --baseline.
tests: Vec<TestResult>Results in suite order (trials next to each other).
Implementations§
Source§impl EvalReport
impl EvalReport
Sourcepub fn apply_baseline(&mut self, baseline: &Baseline, tolerance: &Tolerance)
pub fn apply_baseline(&mut self, baseline: &Baseline, tolerance: &Tolerance)
Compare with baseline, record the comparison and fail the gate on any
regression beyond tolerance.
Trait Implementations§
Source§impl Clone for EvalReport
impl Clone for EvalReport
Source§impl Debug for EvalReport
impl Debug for EvalReport
Source§impl<'de> Deserialize<'de> for EvalReport
impl<'de> Deserialize<'de> for EvalReport
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
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 Forget for EvalReport
impl Freeze for EvalReport
impl Move 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