pub struct RegularizationConfig {
pub l1_weight: f32,
pub l2_weight: f32,
pub dropout_rate: f32,
}Expand description
Regularization configuration
Fields§
§l1_weight: f32L1 regularization strength
l2_weight: f32L2 regularization strength
dropout_rate: f32Dropout rate (for neural models)
Trait Implementations§
Source§impl Clone for RegularizationConfig
impl Clone for RegularizationConfig
Source§fn clone(&self) -> RegularizationConfig
fn clone(&self) -> RegularizationConfig
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 moreAuto Trait Implementations§
impl Freeze for RegularizationConfig
impl RefUnwindSafe for RegularizationConfig
impl Send for RegularizationConfig
impl Sync for RegularizationConfig
impl Unpin for RegularizationConfig
impl UnwindSafe for RegularizationConfig
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