[LightGBM] Stopped training because there are no more leaves that meet the split requirements

在使用lightGBM训练二分类模型时出现了 Stopped training because there are no more leaves that meet the split requirements, Stopped training because there are no more leaves that meet the split requirements 的warning 警告,上网查了一下错误信息是学习树的当前迭代停止,因为叶子节点不能够继续分裂。可能是由于'min_data_in_leaf ' 设置的过大而导致的。


这次除了出现上述的问题模型的auc 的结果始终接近于0.5。尝试减小min_data_in_leaf , 但是仍然会报错。 然而更改boost_from_average 设置True时才能开始树的学习。 值得注意的是boost_from_averagec参数在旧版本中默认为False, 新版本则为True,将其设置为True表示将初始分数调整为标签的平均值以加快收敛速度, 产生上述现象的原因可能是因为样本不平衡导致过拟合。

参考 https://github.com/microsoft/LightGBM/issues/1336

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值