pub struct NumericalMetrics {
pub element_count: usize,
pub nmse: f64,
pub max_abs: f64,
pub reference_mse: f64,
pub uses_absolute_mse: bool,
}Fields§
§element_count: usize§nmse: f64§max_abs: f64§reference_mse: f64§uses_absolute_mse: boolMatches the existing op-diff definition: for reference MSE < 1e-30, the reported error is absolute MSE rather than a normalized ratio.
Trait Implementations§
Source§impl Clone for NumericalMetrics
impl Clone for NumericalMetrics
Source§fn clone(&self) -> NumericalMetrics
fn clone(&self) -> NumericalMetrics
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 NumericalMetrics
impl Debug for NumericalMetrics
Source§impl<'de> Deserialize<'de> for NumericalMetrics
impl<'de> Deserialize<'de> for NumericalMetrics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NumericalMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NumericalMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NumericalMetrics
impl PartialEq for NumericalMetrics
Source§impl Serialize for NumericalMetrics
impl Serialize for NumericalMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NumericalMetrics
Auto Trait Implementations§
impl Freeze for NumericalMetrics
impl RefUnwindSafe for NumericalMetrics
impl Send for NumericalMetrics
impl Sync for NumericalMetrics
impl Unpin for NumericalMetrics
impl UnsafeUnpin for NumericalMetrics
impl UnwindSafe for NumericalMetrics
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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