Struct forust_ml::objective::SquaredLoss
source · pub struct SquaredLoss {}Trait Implementations§
source§impl Default for SquaredLoss
impl Default for SquaredLoss
source§fn default() -> SquaredLoss
fn default() -> SquaredLoss
Returns the “default value” for a type. Read more
source§impl ObjectiveFunction for SquaredLoss
impl ObjectiveFunction for SquaredLoss
fn calc_loss(y: &[f64], yhat: &[f64], sample_weight: &[f64]) -> Vec<f32>
fn calc_init(y: &[f64], sample_weight: &[f64]) -> f64
fn calc_grad(y: &[f64], yhat: &[f64], sample_weight: &[f64]) -> Vec<f32>
fn calc_hess(_: &[f64], _: &[f64], sample_weight: &[f64]) -> Vec<f32>
fn calc_grad_hess( y: &[f64], yhat: &[f64], sample_weight: &[f64] ) -> (Vec<f32>, Vec<f32>)
fn default_metric() -> Metric
Auto Trait Implementations§
impl RefUnwindSafe for SquaredLoss
impl Send for SquaredLoss
impl Sync for SquaredLoss
impl Unpin for SquaredLoss
impl UnwindSafe for SquaredLoss
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