pub enum RegressionLoss {
SquaredError,
Huber(HuberLoss),
}Expand description
Regression loss variants.
Used by LinearRegression to select
the loss function applied to each update.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RegressionLoss
impl Clone for RegressionLoss
Source§fn clone(&self) -> RegressionLoss
fn clone(&self) -> RegressionLoss
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 RegressionLoss
impl Debug for RegressionLoss
Source§impl Default for RegressionLoss
impl Default for RegressionLoss
Source§fn default() -> RegressionLoss
fn default() -> RegressionLoss
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegressionLoss
impl RefUnwindSafe for RegressionLoss
impl Send for RegressionLoss
impl Sync for RegressionLoss
impl Unpin for RegressionLoss
impl UnsafeUnpin for RegressionLoss
impl UnwindSafe for RegressionLoss
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