Enum LossFunction
pub enum LossFunction {
Mse,
Huber(HuberLoss),
TrimmedMse(TrimmedMseLoss),
}Variants§
Implementations§
§impl LossFunction
impl LossFunction
pub fn huber(delta: f64) -> Result<Self, FerroRiskError>
pub fn huber(delta: f64) -> Result<Self, FerroRiskError>
pub fn trimmed_mse(trim_pct: f64) -> Result<Self, FerroRiskError>
pub fn trimmed_mse(trim_pct: f64) -> Result<Self, FerroRiskError>
Trait Implementations§
§impl Clone for LossFunction
impl Clone for LossFunction
§fn clone(&self) -> LossFunction
fn clone(&self) -> LossFunction
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl Default for LossFunction
impl Default for LossFunction
§fn default() -> LossFunction
fn default() -> LossFunction
§impl PartialEq for LossFunction
impl PartialEq for LossFunction
impl Copy for LossFunction
impl StructuralPartialEq for LossFunction
Auto Trait Implementations§
impl Freeze for LossFunction
impl RefUnwindSafe for LossFunction
impl Send for LossFunction
impl Sync for LossFunction
impl Unpin for LossFunction
impl UnsafeUnpin for LossFunction
impl UnwindSafe for LossFunction
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)