pub struct ClosedFormLeaf { /* private fields */ }Available on crate feature
alloc only.Expand description
Leaf model that computes the optimal weight in closed form:
weight = -grad_sum / (hess_sum + lambda).
This is the standard leaf value used in gradient boosted trees.
Implementations§
Trait Implementations§
Source§impl Default for ClosedFormLeaf
impl Default for ClosedFormLeaf
Source§impl LeafModel for ClosedFormLeaf
impl LeafModel for ClosedFormLeaf
Auto Trait Implementations§
impl Freeze for ClosedFormLeaf
impl RefUnwindSafe for ClosedFormLeaf
impl Send for ClosedFormLeaf
impl Sync for ClosedFormLeaf
impl Unpin for ClosedFormLeaf
impl UnsafeUnpin for ClosedFormLeaf
impl UnwindSafe for ClosedFormLeaf
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