pub struct FtrlConfig {
pub alpha: f64,
pub beta: f64,
pub l1: f64,
pub l2: f64,
}Expand description
Configuration for FTRL models.
Controls the per-coordinate learning rate and regularization strengths.
All fields must be finite; alpha must be strictly positive and the
regularization parameters must be non-negative.
Fields§
§alpha: f64Alpha: learning rate scaling. Must be > 0.
beta: f64Beta: smoothing constant. Must be >= 0.
l1: f64L1 regularization strength. Must be >= 0.
l2: f64L2 regularization strength. Must be >= 0.
Trait Implementations§
Source§impl Clone for FtrlConfig
impl Clone for FtrlConfig
Source§fn clone(&self) -> FtrlConfig
fn clone(&self) -> FtrlConfig
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 FtrlConfig
impl Debug for FtrlConfig
Auto Trait Implementations§
impl Freeze for FtrlConfig
impl RefUnwindSafe for FtrlConfig
impl Send for FtrlConfig
impl Sync for FtrlConfig
impl Unpin for FtrlConfig
impl UnsafeUnpin for FtrlConfig
impl UnwindSafe for FtrlConfig
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