Skip to main content

Module split

Module split 

Source
Available on crate feature alloc only.
Expand description

Split criterion traits and XGBoost gain implementation.

This module defines how candidate splits are evaluated from histogram gradient/hessian sums. The primary implementation is XGBoostGain, which uses the exact gain formula from Chen & Guestrin (2016).

Structs§

SplitCandidate
Result of evaluating potential splits across histogram bins.
XGBoostGain
XGBoost-style split gain criterion.

Traits§

SplitCriterion
Evaluates split quality from histogram gradient/hessian sums.

Functions§

leaf_weight
Compute the optimal leaf weight: -G / (H + lambda).