pub struct AdaMaxOptimizer { /* private fields */ }Expand description
AdaMax optimizer (variant of Adam with infinity norm).
Uses the infinity norm of gradients instead of L2 norm, making it more robust to large gradients and outliers.
Reference: Kingma & Ba, “Adam: A Method for Stochastic Optimization”, ICLR 2015
Implementations§
Source§impl AdaMaxOptimizer
impl AdaMaxOptimizer
Sourcepub fn new(config: OptimizerConfig) -> Self
pub fn new(config: OptimizerConfig) -> Self
Create a new AdaMax optimizer.
Trait Implementations§
Source§impl Debug for AdaMaxOptimizer
impl Debug for AdaMaxOptimizer
Auto Trait Implementations§
impl Freeze for AdaMaxOptimizer
impl RefUnwindSafe for AdaMaxOptimizer
impl Send for AdaMaxOptimizer
impl Sync for AdaMaxOptimizer
impl Unpin for AdaMaxOptimizer
impl UnwindSafe for AdaMaxOptimizer
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> 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