Function forust_ml::utils::gain

source ·
pub fn gain(l2: &f32, gradient_sum: f32, hessian_sum: f32) -> f32
Expand description

Calculate the gain given the gradient and hessian of the node.