pub struct SplitCandidate {
pub bin_idx: usize,
pub gain: f64,
pub left_grad: f64,
pub left_hess: f64,
pub right_grad: f64,
pub right_hess: f64,
}Available on crate feature
alloc only.Expand description
Result of evaluating potential splits across histogram bins.
Fields§
§bin_idx: usizeWhich bin index to split at (samples with bin <= index go left).
gain: f64The gain from this split.
left_grad: f64Gradient sum for the left child.
left_hess: f64Hessian sum for the left child.
right_grad: f64Gradient sum for the right child.
right_hess: f64Hessian sum for the right child.
Trait Implementations§
Source§impl Clone for SplitCandidate
impl Clone for SplitCandidate
Source§fn clone(&self) -> SplitCandidate
fn clone(&self) -> SplitCandidate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitCandidate
impl Debug for SplitCandidate
impl Copy for SplitCandidate
Auto Trait Implementations§
impl Freeze for SplitCandidate
impl RefUnwindSafe for SplitCandidate
impl Send for SplitCandidate
impl Sync for SplitCandidate
impl Unpin for SplitCandidate
impl UnsafeUnpin for SplitCandidate
impl UnwindSafe for SplitCandidate
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