fn compute_gain(
	sum_gradients_left: f64,
	sum_hessians_left: f64,
	sum_gradients_right: f64,
	sum_hessians_right: f64,
	negative_loss_current_node: f32,
	l2_regularization: f32,
) -> f32 {
	let left = compute_negative_loss(sum_gradients_left, sum_hessians_left, l2_regularization);
	let right = compute_negative_loss(sum_gradients_right, sum_hessians_right, l2_regularization);
	left + right - negative_loss_current_node
}
/// Compute the gain for a candidate split.
Compute the gain for a candidate split.
Compute the gain for a candidate split .
fn compute_gain(
	sum_gradients_left: f64,
	sum_hessians_left: f64,
	sum_gradients_right: f64,
	sum_hessians_right: f64,
	negative_loss_current_node: f32,
	l2_regularization: f32,
) -> f32 {
	let left = compute_negative_loss(sum_gradients_left, sum_hessians_left, l2_regularization);
	let right = compute_negative_loss(sum_gradients_right, sum_hessians_right, l2_regularization);
	left + right - negative_loss_current_node
}
fn compute_gain ( sum_gradients_left : f64 , sum_hessians_left : f64 , sum_gradients_right : f64 , sum_hessians_right : f64 , negative_loss_current_node : f32 , l2_regularization : f32 , ) -> f32 { let left = compute_negative_loss ( sum_gradients_left , sum_hessians_left , l2_regularization ) ; let right = compute_negative_loss ( sum_gradients_right , sum_hessians_right , l2_regularization ) ; left + right - negative_loss_current_node }
Compute the gain for a candidate split.
Compute the gain for a candidate split .
sum_gradients_left
f64
sum_hessians_left
f64
sum_gradients_right
f64
sum_hessians_right
f64
negative_loss_current_node
f32
l2_regularization
f32