pub struct NNGradient {
pub derivatives: NeuralNet,
}Expand description
A Gradient representation
Fields§
§derivatives: NeuralNetImplementations§
Source§impl NNGradient
impl NNGradient
Trait Implementations§
Source§impl AddAssign for NNGradient
impl AddAssign for NNGradient
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl Clone for NNGradient
impl Clone for NNGradient
Source§fn clone(&self) -> NNGradient
fn clone(&self) -> NNGradient
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 NNGradient
impl Debug for NNGradient
Source§impl GradientUpdateSchedule<NNGradient> for AdaGrad
impl GradientUpdateSchedule<NNGradient> for AdaGrad
fn next_gradient(&mut self, gradient: &mut NNGradient)
Source§impl GradientUpdateSchedule<NNGradient> for FixedLR
impl GradientUpdateSchedule<NNGradient> for FixedLR
Source§fn next_gradient(&mut self, gradient: &mut NNGradient)
fn next_gradient(&mut self, gradient: &mut NNGradient)
Normalizes the nn gradient to have a fixed length
Source§impl PartialEq for NNGradient
impl PartialEq for NNGradient
Source§impl SubAssign<NNGradient> for NeuralNet
impl SubAssign<NNGradient> for NeuralNet
Source§fn sub_assign(&mut self, rhs: NNGradient)
fn sub_assign(&mut self, rhs: NNGradient)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for NNGradient
impl RefUnwindSafe for NNGradient
impl Send for NNGradient
impl Sync for NNGradient
impl Unpin for NNGradient
impl UnwindSafe for NNGradient
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