ray.tune.qloguniform#

ray.tune.qloguniform(lower: float, upper: float, q: float, base: float = 10)[source]#

Sugar for sampling in different orders of magnitude.

The value will be quantized, i.e. rounded to an integer increment of q.

Quantization makes the upper bound inclusive.

Parameters:
  • lower – Lower boundary of the output interval (e.g. 1e-4)

  • upper – Upper boundary of the output interval (e.g. 1e-2)

  • q – Quantization number. The result will be rounded to an integer increment of this value.

  • base – Base of the log. Defaults to 10.