最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

hyperparameters - Hyperopt: attribute 'quniformint' not recognized - Stack Overflow

programmeradmin1浏览0评论

I use mlflow and hyperopt for tuning a model, and trying to figure out hyperopt sampling methods.

I have directly used line of codes from the documentation, as such: my code:

space = {"batch_size": hp.quniformint("batch_size", 16, 256),}

but I get the error:

AttributeError: module 'hyperopt.hp' has no attribute 'quniformint'

Otherwise, my code works with sampling implementation like hp.choice.

Did anyone came across this error? I know that the hyperopt documentation has not always been updated, that could explain this error. Otherwise I basically want to sample uniformly descrete values between 16 and 256 with increment of 16. How else could I do that?

发布评论

评论列表(0)

  1. 暂无评论