Hyperopt, how to setup hyper-parameter for categorical vs numerical hyperparameter?

User16789201666
Databricks Employee
Databricks Employee

 hp.quniform (“quantized uniform”) or hp.qloguniform to generate integers. hp.choice is the right choice when, for example, choosing among categorical choices (which might in some situations even be integers, but not usually).

https://databricks.com/blog/2021/04/15/how-not-to-tune-your-model-with-hyperopt.html