pub struct PreferenceStats {
pub total_pairs: usize,
pub total_estimated_tokens: usize,
pub avg_prompt_tokens: f64,
pub avg_chosen_tokens: f64,
pub avg_rejected_tokens: f64,
pub min_tokens: usize,
pub max_tokens: usize,
pub chosen_rejected_length_ratio: f64,
pub token_histogram: Vec<HistogramBucket>,
}Expand description
Statistics about a preference training dataset.
Fields§
§total_pairs: usizeTotal number of preference pairs.
total_estimated_tokens: usizeTotal estimated tokens across all pairs.
avg_prompt_tokens: f64Average tokens in prompt messages.
avg_chosen_tokens: f64Average tokens in chosen messages.
avg_rejected_tokens: f64Average tokens in rejected messages.
min_tokens: usizeMinimum tokens in any single pair.
max_tokens: usizeMaximum tokens in any single pair.
chosen_rejected_length_ratio: f64Average ratio of chosen to rejected length.
token_histogram: Vec<HistogramBucket>Token count distribution histogram.
Trait Implementations§
Source§impl Clone for PreferenceStats
impl Clone for PreferenceStats
Source§fn clone(&self) -> PreferenceStats
fn clone(&self) -> PreferenceStats
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 PreferenceStats
impl RefUnwindSafe for PreferenceStats
impl Send for PreferenceStats
impl Sync for PreferenceStats
impl Unpin for PreferenceStats
impl UnsafeUnpin for PreferenceStats
impl UnwindSafe for PreferenceStats
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