quniform#
- ray.tune.quniform(lower: float, upper: float, q: float)[source]#
Sample a quantized float value uniformly between
lowerandupper.Sampling from
tune.quniform(1, 10, 0.5)is equivalent to sampling fromnp.random.uniform(1, 10)and rounding to a multiple of0.5.The value will be quantized, i.e. rounded to an integer increment of
q. Quantization makes the upper bound inclusive.