Skip to main content
 首页 » 编程设计

python之sklearn.linear_model.LassoLarsIC 提前停止

2024年11月01日12xxx_UU

这是什么意思?它在我使用 sklearn.linear_model.LassoLarsIC 时弹出:“提前停止 lars 路径,因为残差很小并且 alpha 的当前值不再得到很好的控制”

请您参考如下方法:

sklearn/linear_model/least_angle.py 中发出警告的行之前有一条注释:

# alpha is increasing. This is because the updates of Cov are 
# bringing in too much numerical error that is greater than 
# than the remaining correlation with the 
# regressors. Time to bail out 

希望对你有帮助