ray.tune.quniform
ray.tune.quniform#
- ray.tune.quniform(lower: float, upper: float, q: float)[source]#
Sample a quantized float value uniformly between
lowerandupper.Sampling from
tune.uniform(1, 10)is equivalent to sampling fromnp.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.