Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlow committed Dec 13, 2023
1 parent 413f520 commit 7c6595b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions src/gradientbooster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,13 @@ impl GradientBooster {
self
}

/// Set the max_delta_step on the booster.
/// * `max_delta_step` - The max_delta_step value of the booster.
pub fn set_max_delta_step(mut self, max_delta_step: f32) -> Self {
self.max_delta_step = max_delta_step;
self
}

/// Set the min_leaf_weight on the booster.
/// * `min_leaf_weight` - The minimum sum of the hession values allowed in the
/// node of a tree of the booster.
Expand Down
6 changes: 2 additions & 4 deletions src/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,13 @@ impl HistogramMatrix {
col_index
.par_iter()
.flat_map(|col| {
let h = create_feature_histogram(
create_feature_histogram(
data.get_col(*col),
cuts.get_col(*col),
&sorted_grad,
&sorted_hess,
index,
);
//ends[*col] = h.len();
h
)
})
.collect::<Vec<Bin<f32>>>()
} else {
Expand Down

0 comments on commit 7c6595b

Please sign in to comment.