【发布时间】:2020-08-27 20:20:54
【问题描述】:
为了评估偏差-方差权衡,我更喜欢绘制预测误差与训练估计器的复杂性的关系图。 error vs complexity plot
如果是 xgboost the documentation states that the complexity is taken as the regularisation term of the objective function。所以原则上应该很容易生成这样的情节。
但是,我不知道如何检索经过训练的模型的计算正则化项。我正在使用 Python scikit-learn API。
这个值在库中是否可用,还是应该在训练后重新计算?
【问题讨论】:
标签: python machine-learning xgboost