Expand description
Random number generation utilities
Structs§
- Distribution
Sampler - Advanced distribution sampling utilities
- Thread
Safe Rng - Thread-safe random state management
Functions§
- bootstrap_
indices - Bootstrap sampling: sample n_samples with replacement
- get_rng
- Get a random number generator with the specified seed
- importance_
sampling - Importance sampling: sample indices according to importance weights
- k_
fold_ indices - Generate k-fold cross-validation indices
- random_
indices - Generate random indices for sampling
- random_
permutation - Generate a random permutation of indices
- random_
weights - Generate random weights that sum to 1
- reservoir_
sampling - Reservoir sampling: efficiently sample k items from a stream of unknown size
- set_
random_ state - Set the global random seed for reproducible results
- shuffle_
indices - Shuffle an array of indices in place
- stratified_
split_ indices - Generate stratified train/test split indices
- train_
test_ split_ indices - Split indices into train/test sets
- weighted_
sampling_ without_ replacement - Weighted sampling without replacement using systematic sampling