ray.tune.quniform#

ray.tune.quniform(lower: float, upper: float, q: float)[source]#

Sample a quantized float value uniformly between lower and upper.

Sampling from tune.uniform(1, 10) is equivalent to sampling from np.random.uniform(1, 10))

The value will be quantized, i.e. rounded to an integer increment of q. Quantization makes the upper bound inclusive.

PublicAPI: This API is stable across Ray releases.