K近邻算法我要分享

K-nearest neighbor algorithm

matlab 算法 近邻

关注次数: 194

下载次数: 0

文件大小: 3.56 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 1积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:利用K近邻算法实现模式识别的一个小demo。对测试数据集做预处理,与训练数据集做K近邻匹配;使用5折的循环匹配;并对高维数据进行PCA降维以防止过拟合。


English Description:

Using k-nearest neighbor algorithm to realize a small demo of pattern recognition. The test data set is preprocessed, and k-nearest neighbor matching is done with the training data set; the 5-fold cycle matching is used; and the dimension of high-dimensional data is reduced by PCA to prevent over fitting.


代码预览