Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlow committed Dec 22, 2023
1 parent a12029d commit c8b7f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn create_feature_histogram(
sorted_hess: &[f32],
index: &[usize],
) -> Vec<Bin<f32>> {
let mut histogram: Vec<Bin<f64>> = Vec::with_capacity(cuts.len());
let mut histogram: Vec<Bin<f32>> = Vec::with_capacity(cuts.len());

let mut gradient_sums: Vec<f64> = Vec::with_capacity(cuts.len());
let mut hessian_sums: Vec<f64> = Vec::with_capacity(cuts.len());
Expand Down

0 comments on commit c8b7f5c

Please sign in to comment.