2021年1月5日星期二

Hyperopt: return boolean value instead of int

In the space param, I declare it as:

"langevin": hp.choice("langevin", [True, False])  

The fmin successfully ran. However when I use: model = Regressor(**best), it throws: CatBoostError: catboost/private/libs/options/json_helper.h:157: Can't parse parameter "langevin" with value: 1

How can I force the return value as True?

https://stackoverflow.com/questions/65590059/hyperopt-return-boolean-value-instead-of-int January 06, 2021 at 12:07PM

没有评论:

发表评论