dora.active_sampling.random_sample

dora.active_sampling.random_sample(lower, upper, n)

Used to randomly sample the search space. Provide search parameters and the number of samples desired.

Parameters:
  • lower (array_like) -- Lower or minimum bounds for the parameter space
  • upper (array_like) -- Upper or maximum bounds for the parameter space
  • n (int) -- Number of samples
Returns:

Sampled location in feature space

Return type:

np.ndarray