pub struct LogLoss {}Trait Implementations§
source§impl ObjectiveFunction for LogLoss
impl ObjectiveFunction for LogLoss
fn calc_loss(y: &[f64], yhat: &[f64], sample_weight: &[f64]) -> Vec<f32>
fn calc_init(y: &[f64], sample_weight: &[f64]) -> f64
fn calc_grad_hess( y: &[f64], yhat: &[f64], sample_weight: &[f64] ) -> (Vec<f32>, Vec<f32>)
fn calc_grad(y: &[f64], yhat: &[f64], sample_weight: &[f64]) -> Vec<f32>
fn calc_hess(_: &[f64], yhat: &[f64], sample_weight: &[f64]) -> Vec<f32>
fn default_metric() -> Metric
Auto Trait Implementations§
impl RefUnwindSafe for LogLoss
impl Send for LogLoss
impl Sync for LogLoss
impl Unpin for LogLoss
impl UnwindSafe for LogLoss
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