pub struct LogitRowMetrics {
pub index: usize,
pub numeric: NumericMetrics,
pub top_k_overlap: usize,
pub actual_argmax: Option<usize>,
pub reference_argmax: Option<usize>,
pub reference_argmax_margin: Option<f32>,
pub argmax_required: bool,
pub argmax_match: bool,
pub passed: bool,
}Expand description
Metrics for one vocabulary-logit row.
Fields§
§index: usizeFlattened row ordinal.
numeric: NumericMetricsCommon numerical metrics.
top_k_overlap: usizeNumber of shared entries in the configured top-k sets.
actual_argmax: Option<usize>Actual top-1 vocabulary index.
reference_argmax: Option<usize>Reference top-1 vocabulary index.
reference_argmax_margin: Option<f32>Reference top-1 minus top-2 logit margin.
argmax_required: boolWhether policy required argmax equality for this row.
argmax_match: boolWhether top-1 indices agree.
passed: boolWhether this row passed.
Trait Implementations§
Source§impl Clone for LogitRowMetrics
impl Clone for LogitRowMetrics
Source§fn clone(&self) -> LogitRowMetrics
fn clone(&self) -> LogitRowMetrics
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 LogitRowMetrics
impl Debug for LogitRowMetrics
Source§impl<'de> Deserialize<'de> for LogitRowMetrics
impl<'de> Deserialize<'de> for LogitRowMetrics
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 LogitRowMetrics
impl PartialEq for LogitRowMetrics
Source§impl Serialize for LogitRowMetrics
impl Serialize for LogitRowMetrics
impl StructuralPartialEq for LogitRowMetrics
Auto Trait Implementations§
impl Freeze for LogitRowMetrics
impl RefUnwindSafe for LogitRowMetrics
impl Send for LogitRowMetrics
impl Sync for LogitRowMetrics
impl Unpin for LogitRowMetrics
impl UnsafeUnpin for LogitRowMetrics
impl UnwindSafe for LogitRowMetrics
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