pub struct ScoreReport {
pub harness: String,
pub adapter: String,
pub dataset: String,
pub n_questions: usize,
pub runtime_seconds: f64,
pub timing: TimingBreakdown,
pub overall: BTreeMap<String, f64>,
pub by_category: BTreeMap<String, BTreeMap<String, f64>>,
}Expand description
Common shape every scorer writes to disk as <bench>.json.
Fields§
§harness: StringFree-form harness id (“mnem-lme-session”, “mnem-locomo”, …).
adapter: StringAdapter that ran (e.g. “mnem”).
dataset: StringPath to the dataset file consumed.
n_questions: usizeTotal questions scored.
runtime_seconds: f64Wall-time seconds for the run.
timing: TimingBreakdownPer-phase wall-time split.
overall: BTreeMap<String, f64>Headline metrics (recall@5, recall@10, …).
by_category: BTreeMap<String, BTreeMap<String, f64>>Optional per-category breakdown. Empty when the bench has no category split.
Trait Implementations§
Source§impl Clone for ScoreReport
impl Clone for ScoreReport
Source§fn clone(&self) -> ScoreReport
fn clone(&self) -> ScoreReport
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 moreSource§impl Debug for ScoreReport
impl Debug for ScoreReport
Source§impl<'de> Deserialize<'de> for ScoreReport
impl<'de> Deserialize<'de> for ScoreReport
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
Auto Trait Implementations§
impl Freeze for ScoreReport
impl RefUnwindSafe for ScoreReport
impl Send for ScoreReport
impl Sync for ScoreReport
impl Unpin for ScoreReport
impl UnsafeUnpin for ScoreReport
impl UnwindSafe for ScoreReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more