pub struct GradientCheckResult<'a, F: Float> {
pub point_results: Vec<SinglePointResult<'a, F>>,
pub overall_passed: bool,
pub summary_statistics: SummaryStatistics,
}Expand description
Result of gradient checking
Fields§
§point_results: Vec<SinglePointResult<'a, F>>§overall_passed: bool§summary_statistics: SummaryStatisticsImplementations§
Source§impl<F: Float> GradientCheckResult<'_, F>
impl<F: Float> GradientCheckResult<'_, F>
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a summary of the gradient check results
Trait Implementations§
Source§impl<'a, F: Clone + Float> Clone for GradientCheckResult<'a, F>
impl<'a, F: Clone + Float> Clone for GradientCheckResult<'a, F>
Source§fn clone(&self) -> GradientCheckResult<'a, F>
fn clone(&self) -> GradientCheckResult<'a, F>
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<'a, F> Freeze for GradientCheckResult<'a, F>
impl<'a, F> !RefUnwindSafe for GradientCheckResult<'a, F>
impl<'a, F> !Send for GradientCheckResult<'a, F>
impl<'a, F> !Sync for GradientCheckResult<'a, F>
impl<'a, F> Unpin for GradientCheckResult<'a, F>
impl<'a, F> UnsafeUnpin for GradientCheckResult<'a, F>
impl<'a, F> !UnwindSafe for GradientCheckResult<'a, F>
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> 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