pub enum LossInput {
ClassCounts,
Indices,
}Expand description
What a custom loss receives for a leaf.
Variants§
ClassCounts
The number of instances of each class in the leaf.
Indices
The ids of the leaf’s instances (their row in the training data).
Trait Implementations§
impl Copy for LossInput
impl Eq for LossInput
impl StructuralPartialEq for LossInput
Auto Trait Implementations§
impl Freeze for LossInput
impl RefUnwindSafe for LossInput
impl Send for LossInput
impl Sync for LossInput
impl Unpin for LossInput
impl UnsafeUnpin for LossInput
impl UnwindSafe for LossInput
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