知识卡片
用验证选择多项式次数
多项式次数越高,模型能拟合的形状越多。它可能把训练信号和噪声一起学进去,在未见样本上变差。比较不同次数时,使用同一验证拆分或交叉验证,保留最终测试集。必要时再使用[[岭回归收缩系数]]或[[Lasso产生稀疏系数]]约束复杂模型。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Supervised Learning: Regression · 查看原书依据
Overfitting: Using a high-degree polynomial can lead to overfitting, where the model fits the training data very closely but may not generalize well to new, unseen data. Selecting an appropriate degree of the polynomial is essential to balance model complexity and generalization.
参考来源
- 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 03 章《Supervised Learning: Regression》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch03.xhtml`,book-source 项目,正文索引第 226 段)
- 结论依据:原文指出高次容易过拟合,次数需在表达力和泛化间平衡,同节允许加入 Ridge 或 Lasso。
- 原始内容:Overfitting: Using a high-degree polynomial can lead to overfitting, where the model fits the training data very closely but may not generalize well to new, unseen data. Selecting an appropriate degree of the polynomial is essential to balance model complexity and generalization.