fn compute_negative_loss(sum_gradients: f64, sum_hessians: f64, l2_regularization: f32) -> f32 {
	((sum_gradients * sum_gradients) / (sum_hessians + l2_regularization as f64))
		.to_f32()
		.unwrap()
}
/// The negative loss is used to compute the gain of a given split.
The negative loss is used to compute the gain of a given split.
The negative loss is used to compute the gain of a given split .
fn compute_negative_loss(sum_gradients: f64, sum_hessians: f64, l2_regularization: f32) -> f32 {
	((sum_gradients * sum_gradients) / (sum_hessians + l2_regularization as f64))
		.to_f32()
		.unwrap()
}
fn compute_negative_loss ( sum_gradients : f64 , sum_hessians : f64 , l2_regularization : f32 ) -> f32 { ( ( sum_gradients * sum_gradients ) / ( sum_hessians + l2_regularization as f64 ) ) . to_f32 ( ) . unwrap ( ) }
The negative loss is used to compute the gain of a given split.
The negative loss is used to compute the gain of a given split .
sum_gradients
f64
sum_hessians
f64
l2_regularization
f32