MCPcopy Create free account
hub / github.com/Open-Quant/openquant / warmup_indices

Function warmup_indices

crates/openquant/src/sb_bagging.rs:99–101  ·  view source on GitHub ↗
(rng: &mut StdRng, n_labels: usize, n: usize)

Source from the content-addressed store, hash-verified

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 }

Callers 1

fitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected