pub struct MixUpConfig { /* private fields */ }Expand description
Controls per-batch sample/label interpolation for regularized training.
Implementations§
Source§impl MixUpConfig
impl MixUpConfig
pub fn new() -> Self
pub fn with_probability(self, probability: f32) -> Result<Self, ModelError>
pub fn with_lambda_min(self, lambda_min: f32) -> Result<Self, ModelError>
pub fn probability(&self) -> f32
pub fn lambda_min(&self) -> f32
Trait Implementations§
Source§impl Clone for MixUpConfig
impl Clone for MixUpConfig
Source§fn clone(&self) -> MixUpConfig
fn clone(&self) -> MixUpConfig
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 MixUpConfig
impl Debug for MixUpConfig
Source§impl Default for MixUpConfig
impl Default for MixUpConfig
Source§impl PartialEq for MixUpConfig
impl PartialEq for MixUpConfig
impl StructuralPartialEq for MixUpConfig
Auto Trait Implementations§
impl Freeze for MixUpConfig
impl RefUnwindSafe for MixUpConfig
impl Send for MixUpConfig
impl Sync for MixUpConfig
impl Unpin for MixUpConfig
impl UnsafeUnpin for MixUpConfig
impl UnwindSafe for MixUpConfig
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