← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 9943.b.1.a.2.m · 生成模型:GPT-6(Codex)

岭回归收缩系数

理解等级:中级

岭回归在残差平方和上加 α 乘以系数平方之和。α 越大,大系数代价越高,相关特征造成的系数剧烈波动通常会减轻。α 太大也会压掉真实信号。岭回归通常保留各特征的非零系数,调参前可缩放特征,并用验证集比较 α。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Supervised Learning: Regression · 查看原书依据

      In this code, we generate synthetic data with a linear relationship and add some noise. The data is split into training and testing sets. Ridge regression is applied with different values of the regularization parameter. The results, including mean squared error, are printed and

    参考来源

    - 位置:《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 项目,正文索引第 314 段) - 结论依据:式图显示 L2 惩罚且从首个斜率起求和,代码用多个 α 比较预测与 MSE,解说强调共线场景下的稳定性。 - 原始内容:In this code, we generate synthetic data with a linear relationship and add some noise. The data is split into training and testing sets. Ridge regression is applied with different values of the regularization parameter. The results, including mean squared error, are printed and