pub struct StabilityTestResult {
pub passed: bool,
pub final_loss: f32,
pub max_param_magnitude: f32,
pub nan_count: usize,
pub error_message: Option<String>,
}Expand description
Result of a numerical stability test
Fields§
§passed: boolWhether the test passed
final_loss: f32Final loss value
max_param_magnitude: f32Maximum parameter magnitude encountered
nan_count: usizeNumber of NaN/infinite values encountered
error_message: Option<String>Detailed error message if test failed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StabilityTestResult
impl RefUnwindSafe for StabilityTestResult
impl Send for StabilityTestResult
impl Sync for StabilityTestResult
impl Unpin for StabilityTestResult
impl UnsafeUnpin for StabilityTestResult
impl UnwindSafe for StabilityTestResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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