pub enum Objective {
MeanSquaredError,
}Expand description
Defines the objective function to be optimized. The objective function provides the loss, gradient (first derivative), and hessian (second derivative) required for the XGBoost algorithm.
Variants§
MeanSquaredError
The objective for regression tasks using Mean Squared Error. Loss: 0.5 * (y_true - y_pred)^2
Implementations§
Source§impl Objective
impl Objective
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Objective
impl RefUnwindSafe for Objective
impl Send for Objective
impl Sync for Objective
impl Unpin for Objective
impl UnsafeUnpin for Objective
impl UnwindSafe for Objective
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