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.

Parameters:
  • lower (int) – Lower boundary of the output interval, inclusive.

  • upper (int) – Upper boundary of the output interval. Inclusive unless q is 1.

  • q (int) – Quantization number. The result is a multiple of this value.

  • base (object) – Deprecated. No longer used.

Returns:

An Integer domain that samples log-uniformly and quantizes by q.