首页 | 本学科首页   官方微博 | 高级检索  
     

基于余弦相似度和实例加权改进的贝叶斯算法
引用本文:王行甫,付欢欢,王琳. 基于余弦相似度和实例加权改进的贝叶斯算法[J]. 计算机系统应用, 2016, 25(8): 166-170
作者姓名:王行甫  付欢欢  王琳
作者单位:中国科学技术大学 计算机学院, 合肥 230027,中国科学技术大学 计算机学院, 合肥 230027,中国科学技术大学 计算机学院, 合肥 230027
基金项目:国家科技重大专项(2012ZX10004-301-609);国家自然科学基金(61472382,61272472,61232018)
摘    要:面对大量样本特征时很多分类器无法取得较好的分类效果,样本数有限导致贝叶斯算法无法获得精确的联合概率分布估计,在样本局部构建高质量分类器需要有效的样本相似性度量指标. 针对以上问题,提出了一种基于余弦相似度进行实例加权改进的朴素贝叶斯分类算法. 算法考虑特征对分类的决策权重不同,使用余弦相似度度量样本的相似性,选出最优训练样本子集,用相似度值作为训练样本的权值来训练修正后的贝叶斯模型进行分类. 基于UCI数据集的对比实验结果表明,提出的改进算法易于实现且具有更高的平均分类准确率.

关 键 词:实例加权  朴素贝叶斯  余弦相似度  逆文本频率  文本分类
收稿时间:2015-12-19
修稿时间:2016-01-28

Improved Naïve Bayes Algorithm Based on Weighted Instance with Cosine Similarity
WANG Xing-Fu,FU Huan-Huan and WANG Lin. Improved Naïve Bayes Algorithm Based on Weighted Instance with Cosine Similarity[J]. Computer Systems& Applications, 2016, 25(8): 166-170
Authors:WANG Xing-Fu  FU Huan-Huan  WANG Lin
Affiliation:School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China,School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China and School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China
Abstract:Many classifiers cannot get good results facing numerous sample features, bayes algorithms get poor estimate of joint probability distribution with limited samples, effective similarity measure is needed to build a local classifier. Considering these problems, an improved multinomial Naïve Bayes algorithm based on weighted instances (IWIMNB) with cosine similarity is proposed. Taking different attributes contributing differently to the classification decision weight into account this algorithm uses cosine similarity as a metric of the similarity between training and validation instances. Selected training instances weighted by cosine similarity are used to train modified Naïve Bayes model. Results of final experiments show that the average classification accuracy of the proposed IWIMNB algorithm gets significant improvement.
Keywords:weighted instance  Naïve Bayes  cosine similarity  inverse document frequency  text categorization
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号