Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfl.test_utils.sample_uniformly

View source on GitHub

Deterministically generates num_point random points within bounds.

tfl.test_utils.sample_uniformly(
    num_points, lower_bounds, upper_bounds
)

Points will be such that: lower_bounds[i] <= p[i] <= upper_bounds[i]

Number of dimensions is defined by lengths of lower_bounds list.

Args:

  • num_points: number of points to generate.
  • lower_bounds: list or tuple of lower bounds.
  • upper_bounds: list or tuple of upper bounds.

Returns:

List of generated points.