成功解决lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got “0.02“
成功解决lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got "0.02"
解决问题
raise LightGBMError(decode_string(_LIB.LGBM_GetLastError()))
lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got "0.02"
解决思路
raise LightGBM 解码字符串出错!
lightgbm.basic.lightgbm错误:参数max_depth 应为int类型,但是却获得“0.02”
解决方法
将参数进行修改
learning_rat = params3[1]
max_dept = params3[0]
n_estimato = params3[2]
改为
learning_rat = params3[0]
max_dept = params3[1]
n_estimato = params3[2]
赞 (0)