pub struct DatasetStats {
pub total_examples: usize,
pub total_messages: usize,
pub total_estimated_tokens: usize,
pub avg_messages_per_example: f64,
pub avg_tokens_per_example: f64,
pub min_tokens: usize,
pub max_tokens: usize,
pub examples_with_system: usize,
pub role_counts: RoleCounts,
pub token_histogram: Vec<HistogramBucket>,
}Expand description
Statistics about a training dataset.
Fields§
§total_examples: usizeTotal number of training examples.
total_messages: usizeTotal number of messages across all examples.
total_estimated_tokens: usizeTotal estimated tokens across all examples.
avg_messages_per_example: f64Average messages per example.
avg_tokens_per_example: f64Average estimated tokens per example.
min_tokens: usizeMinimum tokens in any single example.
max_tokens: usizeMaximum tokens in any single example.
examples_with_system: usizeNumber of examples that include a system message.
role_counts: RoleCountsMessage counts per role.
token_histogram: Vec<HistogramBucket>Token count distribution histogram.
Trait Implementations§
Source§impl Clone for DatasetStats
impl Clone for DatasetStats
Source§fn clone(&self) -> DatasetStats
fn clone(&self) -> DatasetStats
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 moreAuto Trait Implementations§
impl Freeze for DatasetStats
impl RefUnwindSafe for DatasetStats
impl Send for DatasetStats
impl Sync for DatasetStats
impl Unpin for DatasetStats
impl UnsafeUnpin for DatasetStats
impl UnwindSafe for DatasetStats
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