pub enum RelaxDist {
Logistic,
Cauchy,
Gaussian,
}Expand description
Distribution family for relaxing the comparator.
Variants§
Logistic
Logistic sigmoid: sigma(x) = 1 / (1 + exp(-x)). Standard choice, smooth and well-behaved.
Cauchy
Cauchy CDF: 0.5 + arctan(x)/pi. Heavier tails, more gradient signal far from the decision boundary.
Gaussian
Gaussian CDF (probit): Phi(x). Lighter tails, sharper transitions.
Trait Implementations§
impl Copy for RelaxDist
impl StructuralPartialEq for RelaxDist
Auto Trait Implementations§
impl Freeze for RelaxDist
impl RefUnwindSafe for RelaxDist
impl Send for RelaxDist
impl Sync for RelaxDist
impl Unpin for RelaxDist
impl UnsafeUnpin for RelaxDist
impl UnwindSafe for RelaxDist
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