catboost/catboost

Unclear error message for incorrect training parameter type

已關閉

#872 建立於 2019年6月17日

 (6 則留言) (0 個反應) (0 位負責人)Python (1,163 個分叉)batch import
help wanted

倉庫指標

星標
 (7,556 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I setup my hyperopt space incorrectly, resulting in it passing a float rather than int for leaf_estimation_iterations. The result was the rather cryptic stack trace below. Ideally the message would indicate it's trying to parse as a int?

File "/usr/local/lib/python3.7/dist-packages/catboost/core.py", line 1231, in _fit
_check_train_params(params)
File "_catboost.pyx", line 3435, in _catboost._check_train_params
File "_catboost.pyx", line 3443, in _catboost._check_train_params
_catboost.CatBoostError: catboost/libs/options/json_helper.h:153: Can't parse parameter "leaf_estimation_iterations" with value: 86.85434834

貢獻者指南