pub struct DistributionMetrics {
pub kl_nats: f64,
pub reference_entropy_nats: f64,
pub target_nll_delta_nats: Option<f64>,
pub centered_logit_rmse: f64,
pub top1_agreement: bool,
pub top_k_overlap: f64,
}Expand description
Metrics comparing one candidate categorical distribution with a reference.
Fields§
§kl_nats: f64KL(reference || candidate), in nats.
reference_entropy_nats: f64Entropy of the reference distribution, in nats.
target_nll_delta_nats: Option<f64>Candidate minus reference negative log likelihood for an optional target.
centered_logit_rmse: f64RMSE after removing the mean logit from each side.
top1_agreement: boolWhether top-1 indices agree.
top_k_overlap: f64Fractional overlap between the selected leading sets.
Trait Implementations§
Source§impl Clone for DistributionMetrics
impl Clone for DistributionMetrics
Source§fn clone(&self) -> DistributionMetrics
fn clone(&self) -> DistributionMetrics
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 DistributionMetrics
impl Debug for DistributionMetrics
Source§impl<'de> Deserialize<'de> for DistributionMetrics
impl<'de> Deserialize<'de> for DistributionMetrics
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 DistributionMetrics
impl PartialEq for DistributionMetrics
Source§impl Serialize for DistributionMetrics
impl Serialize for DistributionMetrics
impl StructuralPartialEq for DistributionMetrics
Auto Trait Implementations§
impl Freeze for DistributionMetrics
impl RefUnwindSafe for DistributionMetrics
impl Send for DistributionMetrics
impl Sync for DistributionMetrics
impl Unpin for DistributionMetrics
impl UnsafeUnpin for DistributionMetrics
impl UnwindSafe for DistributionMetrics
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