
Explanation:
The correct answer is B. hp.qloguniform(label, low, high, q). This function generates a random value from a log-uniform distribution within specified bounds and quantizes it by rounding to a multiple of q, closely matching the described formula's behavior. Other options do not fully replicate the formula's steps involving exponentiation, rounding, or quantization.
Which Hyperopt function returns a value similar to round(exp(normal(mu, sigma)) / q) * q?
A
hp.normal(label, mu, sigma)
B
hp.qloguniform(label, low, high, q)
C
hp.lognormal(label, mu, sigma)
D
hp.quniform(label, low, high, q)
No comments yet.