Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/apachecn/MachineLearning int…
Browse files Browse the repository at this point in the history
…o dev
  • Loading branch information
jiangzhonglian committed Jul 14, 2018
2 parents 04cb788 + de8e2d0 commit 3ebc7fd
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions docs/2.k-近邻算法.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,19 +430,7 @@ def handwritingClassTest():
print "\nthe total error rate is: %f" % (errorCount / float(mTest))
```

> 使用算法:本例没有完成此步骤,若你感兴趣可以构建完整的应用程序,从图像中提取数字,并完成数字识别,美国的邮件分拣系统就是一个实际运行的类似系统


## KNN 小结

KNN 是什么?定义: 监督学习? 非监督学习?

KNN 是一个简单的无显示学习过程,非泛化学习的监督学习模型。在分类和回归中均有应用。

### 基本原理

简单来说: 通过距离度量来计算查询点(query point)与每个训练数据点的距离,然后选出与查询点(query point)相近的K个最邻点(K nearest neighbors),使用分类决策来选出对应的标签来作为该查询点的标签。
> 使用算法:本例没有完成此步骤,若你感兴趣可以构建完整的应用程序,从图像中提取数字,并完成数字识别,美国的邮件分拣系统就是一个实际运行的类似系统。
## KNN 小结

Expand Down

0 comments on commit 3ebc7fd

Please sign in to comment.