ray.tune.choice#

ray.tune.choice(categories: Sequence)[source]#

Sample a categorical value.

Sampling from tune.choice([1, 2]) is equivalent to sampling from np.random.choice([1, 2])