(rng: &mut StdRng, n_labels: usize, n: usize)
| 97 | ) -> Vec<usize> { |
| 98 | if bootstrap_features { |
| 99 | (0..max_features).map(|_| rng.gen_range(0..n_features)).collect() |
| 100 | } else { |
| 101 | let mut all: Vec<usize> = (0..n_features).collect(); |
| 102 | all.shuffle(rng); |
| 103 | all.into_iter().take(max_features).collect() |
| 104 | } |