dora.active_sampling.grid_sample

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

Used to seed an algorithm with a regular pattern of the corners and the centre. Provide search parameters and the i_stackex.

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) -- Index of location
Returns:

Sampled location in feature space

Return type:

np.ndarray