Skip to content

Commit 1a94f7c

Browse files
committed
style: rustfmt sample_with_replacement signature in random_forest_classifier
1 parent cd86feb commit 1a94f7c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/ensemble/random_forest_classifier.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,11 @@ impl<TX: FloatNumber + PartialOrd, TY: Number + Ord, X: Array2<TX>, Y: Array1<TY
587587
which_max(&result)
588588
}
589589

590-
fn sample_with_replacement(y: &[usize], num_classes: usize, rng: &mut impl rand::Rng) -> Vec<usize> {
590+
fn sample_with_replacement(
591+
y: &[usize],
592+
num_classes: usize,
593+
rng: &mut impl rand::Rng,
594+
) -> Vec<usize> {
591595
let class_weight = vec![1.; num_classes];
592596
let nrows = y.len();
593597
let mut samples = vec![0; nrows];

0 commit comments

Comments
 (0)