pub struct BenchmarkStats {
pub total_examples: usize,
pub total_entities: usize,
pub avg_entities_per_example: f64,
pub examples_with_no_entities: usize,
pub edge_case_distribution: Vec<(EdgeCaseType, usize)>,
}Expand description
Statistics about a benchmark dataset.
Fields§
§total_examples: usizeTotal number of examples in the dataset.
total_entities: usizeTotal number of entities across all examples.
avg_entities_per_example: f64Average entities per example.
examples_with_no_entities: usizeNumber of examples with no entities (negative examples).
edge_case_distribution: Vec<(EdgeCaseType, usize)>Distribution of edge case types (if tracked during generation).
Implementations§
Source§impl BenchmarkStats
impl BenchmarkStats
Sourcepub fn from_dataset(examples: &[AnnotatedExample]) -> Self
pub fn from_dataset(examples: &[AnnotatedExample]) -> Self
Calculate stats from a dataset
Trait Implementations§
Source§impl Clone for BenchmarkStats
impl Clone for BenchmarkStats
Source§fn clone(&self) -> BenchmarkStats
fn clone(&self) -> BenchmarkStats
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 BenchmarkStats
impl RefUnwindSafe for BenchmarkStats
impl Send for BenchmarkStats
impl Sync for BenchmarkStats
impl Unpin for BenchmarkStats
impl UnsafeUnpin for BenchmarkStats
impl UnwindSafe for BenchmarkStats
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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