qlograndint#

ray.tune.qlograndint(lower: int, upper: int, q: int, base: object = <object object>)[source]#

Sample an integer value log-uniformly between lower and upper.

lower is inclusive, upper is also inclusive except for q=1 where it’s exclusive. The value will be quantized, i.e. it will be a multiple of q. The multiples of q between lower and upper are drawn log-uniformly.

Changed in version 1.5.0: When converting Ray Tune configs to searcher-specific search spaces, the lower and upper limits are adjusted to keep compatibility with the bounds stated in the docstring above.