Skip to content

Commit

Permalink
fix eqref
Browse files Browse the repository at this point in the history
  • Loading branch information
szcf-weiya committed Jan 18, 2021
1 parent 80f642b commit 3b38515
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ $$
最邻近方法用训练集 $\mathcal{T}$ 中在输入空间中离 $x$ 最近的观测组成 $\hat{Y}$.特别地,对 $\hat{Y}$ 的 $k$-最近邻拟合定义如下:

$$
\hat{Y}(x)=\frac{1}{k}\sum\limits_{x_i\in N_k(x)}y_i\tag{2.8}
\hat{Y}(x)=\frac{1}{k}\sum\limits_{x_i\in N_k(x)}y_i\tag{2.8}\label{2.8}
$$

$N_k(x)$ 是在训练样本中 $k$ 个离 $x$ 最近的点 $x_i$ 组成的邻域.远近意味着度量,目前我们假设是欧氏距离.因此,用文字来叙述就是,我们在输入空间中找到离 $x$ 最近的 $k$ 个观测 $x_i$,然后取这些值的平均.
Expand Down

0 comments on commit 3b38515

Please sign in to comment.