generate_random_parameter_samples#
- petpal.utils.testing_utils.generate_random_parameter_samples(num_samples, num_params, hi, lo)#
Generates an array of random parameter samples.
- Parameters:
num_samples (int) – The number of samples to generate.
num_params (int) – The number of parameters per sample.
hi (float) – The upper limit (exclusive) of the interval to draw random samples.
lo (float) – The lower limit (inclusive) of the interval to draw random samples.
- Returns:
np.ndarray – An array of random parameters samples with shape
(num_samples, num_params).
Note
Uses
np.random.random()to generate random values in a given shape.