APP下载

基于混合模重构的kNN回归

2016-03-17龚永红朱永华程德波

计算机应用与软件 2016年2期

龚永红 宗 鸣 朱永华 程德波

1(广西师范大学广西多源信息挖掘与安全重点实验室 广西 桂林 541004)

2(桂林航天工业学院图书馆 广西 桂林 541004)

3(广西师范大学计算机科学与信息工程学院 广西 桂林 541004)

4(广西大学计算机与电子信息学院 广西 南宁 530004)



基于混合模重构的kNN回归

龚永红1,2宗鸣1,3朱永华4程德波1,3

1(广西师范大学广西多源信息挖掘与安全重点实验室广西 桂林 541004)

2(桂林航天工业学院图书馆广西 桂林 541004)

3(广西师范大学计算机科学与信息工程学院广西 桂林 541004)

4(广西大学计算机与电子信息学院广西 南宁 530004)

摘要对于线性回归中kNN(k-Nearest Neighbor)算法的k值固定问题和训练样本中的噪声问题,提出一种新的基于重构的稀疏编码方法。该方法用训练样本重构每一个测试样本,重构过程中,l1-范数被用来确保每个测试样本被不同数目的训练样本来预测,以此解决kNN算法固定k值问题;l2,1-范数导致的整行稀疏被用来去除噪声样本,以避免数据集上的噪声对重构产生不利影响。实验在UCI数据集上显示:新的改进算法比原来的kNN算法在线性回归中具有更好的预测效果。

关键词线性回归稀疏编码重构l1-范数l2,1-范数噪声样本

KNN REGRESSION BASED ON MIXED-NORM RECONSTRUCTION

Gong Yonghong1,2Zong Ming1,3Zhu Yonghua4Cheng Debo1,3

1(Guangxi Key Lab of Multi-source Information Mining and Security,Guangxi Normal University,Guilin 541004,Guangxi,China)2(Guilin University of Aerospace Technology Library,Guilin 541004,Guangxi,China)3(School of Computer Science and Information Technology,Guangxi Normal University,Guilin 541004,Guangxi,China)4(School of Computer,Electronics and Information,Guangxi University,Nanning 530004,Guangxi,China)

AbstractThis paper proposes a new reconstruction-based sparse coding method for solving the problem of k value fixing of k-NN in linear regression and the problem of noise in training samples. The method reconstructs every test sample using training sample. In reconstruction process,thel1-norm is used to ensure each test sample will be predicted by training sample in different numbers and thus to solve the problem of k-NN algorithm in fixingkvalue,and the entire row sparse incurred byl2,1-norm is used to remove noise samples so as to prevent the noise in dataset from adverse impact on the reconstruction. Experimental results on UCI datasets show that the new improved algorithm outperforms the previous k-NN regression method in terms of prediction effect.

KeywordsLinear regressionSparse codingReconstructionl1-norml2,1-normNoise sample

0引言

kNN算法是一种应用广泛的分类方法,它是最近邻算法(NN算法)的推广形式。NN算法最早是由Cover和Hart在1967年提出,最早用于分类的研究[1]。kNN算法也可用于回归:对于一个测试样本,在所有训练样本中选取最接近它的k个样本的均值来进行预测。然而本文发现传统的kNN算法对每一个测试样本,都用同样k个数目的训练样本来进行预测,这在应用中不合实际。……

登录APP查看全文