设计 任务书 文档 开题 答辩 说明书 格式 模板 外文 翻译 范文 资料 作品 文献 课程 实习 指导 调研 下载 网络教育 计算机 网站 网页 小程序 商城 购物 订餐 电影 安卓 Android Html Html5 SSM SSH Python 爬虫 大数据 管理系统 图书 校园网 考试 选题 网络安全 推荐系统 机械 模具 夹具 自动化 数控 车床 汽车 故障 诊断 电机 建模 机械手 去壳机 千斤顶 变速器 减速器 图纸 电气 变电站 电子 Stm32 单片机 物联网 监控 密码锁 Plc 组态 控制 智能 Matlab 土木 建筑 结构 框架 教学楼 住宅楼 造价 施工 办公楼 给水 排水 桥梁 刚构桥 水利 重力坝 水库 采矿 环境 化工 固废 工厂 视觉传达 室内设计 产品设计 电子商务 物流 盈利 案例 分析 评估 报告 营销 报销 会计
Logo 顶部广告
首页 | 机械毕业设计 | 电子电气毕业设计 | 计算机毕业设计 | 土木工程毕业设计 | 视觉传达毕业设计 | 理工论文 | 文科论文 | 毕设资料 | 帮助中心
今天是: |>>> 您现在的位置:首页>>>>文档详细内容
标题:

基于Python Scrapy爬虫改进KNN算法的网站分类系统 毕业论文+任务书+项目源码及数据库文件


摘 要随着互联网技术的飞速发展,Internet 上的 Web 页面呈指数型增长。对于如何自动对这些海量数据有效处理和管理,来取代低效繁琐的人工管理,Web 文本分类技术成了关键技术。目前对于这方面的研究已经有了很大进展,并且产生了一系列分类方法,比较著名的有支持向量机(VSM)、K 最邻近(KNN)、神经网络和贝叶斯(Bayes)算法等。在这些算法中,KNN 算法由于其简单、有效、参数无关,目前的应用非常广泛。但是,KNN 算法有着不少的缺陷,最关键的两个缺陷是运行速度太慢和分类精度不高。本设计对 KNN 算法的缺陷产生原因进行了分析,并对其进行了改进:在特征提取上引入了基于改进的 CHI 方法使得特征提取更加合理;在 KNN 分类器运行速度的改进方面引入了 Rocchio 算法的思想和一些其他简单的思路对分类器进行速度的提升,使得新的分类器的分类速度得到大幅度提升;在 KNN 分类器分类精度的改进方面,通过在相似度计算上引入了基于属性熵值的相似度改进和基于 KNN 类别加权的改进,使得改进的 KNN 算法又在分类精度上得到了大幅度提高。在基于上述这些改进后,搭建出了一个真正具备高效、实用的网站分类系统。本文完成了分类器系统的实现,并且利用个 3578 个真实网站内容作为测试集对系统进行了性能测试。通过对实验结果进行分析,得出本文提出的新的 KNN 分类器在测试集数据的环境下达到了高速分类和分类正确率远高出传统方法的结论。本文提出的新的高效 KNN 算法作为网站分类器比原有的 KNN 分类方法和加权 KNN 方法有更快的速度,同时比两者有更高的分类精度。关键词:高效网站分类;改进特征提取;快速分类;高精度分类;属性熵值分析AbstractWith the rapid development of the Internet,web pages on the Internet is growing exponentially. On the issue of how to organize and deal with these massive data effectively, automatically and how to take the place of manual management which is too inefficient and cumbersome, Web text classification has became a key technology. At present,the research in this area has made great progress,and there are a series of classification methods. And there are some well-known methods such as support vector machine (VSM), K-nearest neighbor(KNN), neural networks and Bayes algorithm. KNN method is widely used due to that it is sample,effective and regardless of parameters. However,the traditional KNN method has two critical flaws, one flaw of them is that KNN method is running too slow, the other flaw is that the accuracy of this method is not sufficiently high.This paper analyzed the causes of detects in KNN method and made major improvements: In the feature extraction module,we introduced an improved method based on CHI method,which makes the feature extraction more reasonable. In the classifier speed improvements, we introduced the idea of Rocchio method and some other simple ideas to improve classification running speed. Thus new classifier will be greatly improved in the speed. In the classifier accuracy improvements, we made the classification accuracy significantly improved through the introduction of an improved similarity calculation based on the entropy of properties and some ideas based on class weighted KNN method.Based upon these improvements, we built out a definitely efficient and practical web classification system. This paper completed the implementation of the new classification system,and we used 3578 real web content as a test set to test the performance of our system. Through the analysis of experimental results, we drew a conclusion that in our test data set environment, our improved classifier has achieved high-speed sorting and much higher accuracy rate than traditional KNN method. Web classifier based on new efficient improved KNN method proposed in this paper has much faster speed and much higher classification accuracy rate than the original KNN method and weighted KNN method.Keywords: efficient site classification, improved feature extraction, rapid classification, precision classification, property entropy analysis目 录摘 要 IAbstract II第 1 章 绪 论 11.1课题的研究背景和意义 11.1.1目前网站分类的研究情况 11.1.2现有解决方案的优点与不足 11.1.3基于特征熵值分析的网站分类系统的设计目标 21.2论文的研究内容与组织结构 21.2.1论文的研究内容 21.2.2论文的组织结构 3第 2 章 系统模块组成介绍 42.1系统总体架构 42.2爬虫模块功能和技术 62.3网页处理模块功能和技术 62.4特征提取与文本表示模块功能和技术 72.5分类器模块功能和技术 72.6本章小结 7第 3 章 爬虫模块和页面处理模块 93.1爬虫模块详细设计 93.2页面处理模块详细设计 103.2.1页面内容价值分析 103.2.2页面处理方法 113.2.3一种线性时间的正文提取算法 123.2.4页面处理关键流程图 133.3本章小结 14第 4 章 特征提取与文本特征表示模块 154.1特征提取技术介绍 154.1.1传统的卡方检验方法(CHI) 154.1.2传统的卡方检验方法的缺陷分析 174.1.3一种改进的卡方检验方法 184.2文本特征表示介绍 184.2.1体现词在文档中权重的关键因素分析 194.2.2TF*IDF 方法 194.3本章小结 20第 5 章 KNN 分类器模块 225.1传统 KNN 算法介绍 225.2传统 KNN 算法的缺陷 225.3在运行速度上改进 KNN 算法 235.3.1传统 KNN 算法运行速度低下的原因分析 235.3.2用 Rocchio 算法进行预选候选类 245.3.3根据文本的特征集与每类特征交集再次筛选候选类 255.3.4建立倒排索引 255.3.5引入位置向量表示法来降低高维向量计算量 265.3.6快速 KNN 算法的系统流程 275.4属性熵介绍 295.4.1熵的定义 295.4.2属性熵值的意义 295.5在分类精度上改进 KNN 算法 295.5.1传统 KNN 算法分类精度低的原因分析 295.5.2引入共有特征个数改进相似度计算公式 305.5.3引入属性熵值再次改进相似度计算公式 305.5.4引入类别平均相似度改进在 K 邻居中各类权重公式 325.5.5引入类别贡献度再次改进在 K 邻居中各类权重公式 325.5.6高精度 KNN 算法的关键流程 335.6本章小结 33第 6 章 实验测试与评价 346.1分类标准和训练数据 346.2测试结果 356.3本章小结 36结 论 37参考文献 38致 谢 41

















| 关于我们 | 友情链接 | 毕业设计招聘 |

毕业66资料站 biye66.com ©2015-2026 版权所有 | 微信:15573586651 QQ:3903700237

本站毕业设计和毕业论文资料均属原创者所有,仅供学习交流之用,请勿转载并做其他非法用途.如有侵犯您的版权有损您的利益,请联系我们会立即改正或删除有关内容!