pub struct GradientCheckConfig {
pub relative_tolerance: f64,
pub absolute_tolerance: f64,
pub finite_diff_config: FiniteDifferenceConfig,
pub check_multiple_points: bool,
pub num_test_points: usize,
pub check_second_order: bool,
pub check_parameters: bool,
pub verbose: bool,
}Expand description
Configuration for gradient checking
Fields§
§relative_tolerance: f64Relative tolerance for gradient comparisons
absolute_tolerance: f64Absolute tolerance for gradient comparisons
finite_diff_config: FiniteDifferenceConfigFinite difference configuration
check_multiple_points: boolCheck gradients at multiple random points
num_test_points: usizeNumber of random points to test
check_second_order: boolEnable second-order gradient checking (Hessian)
check_parameters: boolEnable gradient checking with respect to parameters
verbose: boolVerbose output for debugging
Trait Implementations§
Source§impl Clone for GradientCheckConfig
impl Clone for GradientCheckConfig
Source§fn clone(&self) -> GradientCheckConfig
fn clone(&self) -> GradientCheckConfig
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 moreSource§impl Debug for GradientCheckConfig
impl Debug for GradientCheckConfig
Auto Trait Implementations§
impl Freeze for GradientCheckConfig
impl RefUnwindSafe for GradientCheckConfig
impl Send for GradientCheckConfig
impl Sync for GradientCheckConfig
impl Unpin for GradientCheckConfig
impl UnsafeUnpin for GradientCheckConfig
impl UnwindSafe for GradientCheckConfig
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