#[non_exhaustive]pub struct AdaGradConfig {
pub learning_rate: f64,
pub l2: f64,
pub epsilon: f64,
}Expand description
Configuration for AdaGrad.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.learning_rate: f64Global learning rate. Must be finite and strictly positive.
l2: f64L2 regularization strength.
epsilon: f64Small constant added to the denominator for numerical stability.
Trait Implementations§
Source§impl Clone for AdaGradConfig
impl Clone for AdaGradConfig
Source§fn clone(&self) -> AdaGradConfig
fn clone(&self) -> AdaGradConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdaGradConfig
impl Debug for AdaGradConfig
Auto Trait Implementations§
impl Freeze for AdaGradConfig
impl RefUnwindSafe for AdaGradConfig
impl Send for AdaGradConfig
impl Sync for AdaGradConfig
impl Unpin for AdaGradConfig
impl UnsafeUnpin for AdaGradConfig
impl UnwindSafe for AdaGradConfig
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