← 返回刚才阅读的位置

知识卡片

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

多项式特征拟合曲线

理解等级:中级

多项式回归先展开 x、x² 等特征,再估计它们的线性组合,对原始输入可得到曲线。书例用常数列、x 和 x² 拟合带噪二次关系,依据正规方程求参数。一次项系数只描述该项,曲线的斜率随 x 变化。新增幂次扩大能表达的形状,也加大过拟合风险。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      In this code, we generate synthetic data for demonstration purposes. The data follows a quadratic relationship Y=2+3X+0.5X2 with added random noise. Then, we fit a polynomial regression model with the specified degree. The X_poly matrix includes both the original feature and its square. The

    参考来源

    - 位置:《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 项目,正文索引第 268 段) - 结论依据:二次例明确给出生成过程、平方特征、常数列和正规方程。次数与泛化的关系另见该节正文。 - 原始内容:In this code, we generate synthetic data for demonstration purposes. The data follows a quadratic relationship Y=2+3X+0.5X2 with added random noise. Then, we fit a polynomial regression model with the specified degree. The X_poly matrix includes both the original feature and its square. The