Sample a categorical value.
Sampling from tune.choice([1, 2]) is equivalent to sampling from
np.random.choice([1, 2])
- Parameters:
categories (Sequence) – The values to sample from.
- Returns:
A Categorical domain that samples uniformly from categories.