知识卡片
线性回归拟合特征到标签
线性回归用权重和偏置把特征向量映射为预测值,再从训练样本学习这些参数。
模型形式f(x)=w₀+Σwⱼxⱼ;用于新样本前,应区分训练拟合与未见样本上的预测质量。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第33章 机器学习算法 · 查看原书依据
, wn), with When evaluating a machine-learning model, you need to measure how close each value f(x(i)) is to its corresponding label y(i). In this example, we define the error e(i) ∈ ℝ associated with patient i as e(i) = f(x(i)) – y(i). The objective function we choose is to minimize the sum of squares of the errors, which is The objective function is typically called the loss function, and the least-squares error given by equation (33.33) is just one example of many possible loss functions. The goal is then, given the x(i) and y(i) values, to compute the weights w0, w1,
参考来源
- 位置:《算法导论(第4版)》第33章《机器学习算法》(OEBPS/chapter033.xhtml,文本字符[65000,70000))。
- 结论依据:原文第33.3节或章末题目、注记;相关公式图已核对,未解答书中练习。
- 原始内容:A linear function f can be defined by a vector of weights w = ( w 0 , w 1 , …, w n ), with When evaluating a machine-learning model, you need to measure how close each value f ( x ( i ) ) is to its corresponding label y ( i ) . In this example, we define the error e ( i ) ∈ ℝ associated with patient i as e ( i ) = f ( x ( i ) ) – y ( i ) . The objective function we choose is to minimize the sum of squares of the errors, which is The objective function is typically called the loss function , and the least-squares error given by equation (33.33) is just one example of many possible loss functions. The goal is then, given the x ( i ) and y ( i ) values, to compute the weights w 0 , w 1 , …, w n so as to minimize the loss function in