pub enum Loss {
Linear,
SoftL1,
Huber,
Cauchy,
Arctan,
}Expand description
Robust loss functions ρ(z) of the squared residual z = (f / f_scale)² (SciPy’s loss).
Variants§
Linear
ρ(z) = z: ordinary least squares.
SoftL1
ρ(z) = 2(√(1 + z) − 1).
Huber
ρ(z) = z for z ≤ 1, 2√z − 1 beyond.
Cauchy
ρ(z) = ln(1 + z).
Arctan
ρ(z) = arctan(z).
Trait Implementations§
impl Copy for Loss
impl Eq for Loss
impl StructuralPartialEq for Loss
Auto Trait Implementations§
impl Freeze for Loss
impl RefUnwindSafe for Loss
impl Send for Loss
impl Sync for Loss
impl Unpin for Loss
impl UnsafeUnpin for Loss
impl UnwindSafe for Loss
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