朴素贝叶斯算法实战 email邮件数据集,SogouC新闻数据集 Email-NB.py垃圾邮件过滤实现(Python3实现)

上传者: Mrrunsen | 上传时间: 2023-04-06 12:03:35 | 文件大小: 196KB | 文件类型: ZIP
朴素贝叶斯算法实战 email邮件数据集,SogouC新闻数据集 Email_NB.py垃圾邮件过滤实现(Python3实现) Naive_Bay.py 朴素贝叶斯算法实现(Python3实现) 样本比较小,成功率大概为90% import numpy as np from functools import reduce """ 函数说明:创建实验样本 Parameters: 无 Returns: postingList - 实验样本切分的词条 classVec - 类别标签向量 """ def loadDataSet(): postingList=[['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'], #切分的词条 ['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid'], ['my', 'dalmation', 'is', 'so',

文件下载

资源详情

[{"title":"( 150 个子文件 196KB ) 朴素贝叶斯算法实战\nemail邮件数据集,SogouC新闻数据集\nEmail-NB.py垃圾邮件过滤实现(Python3实现)\n","children":[{"title":".gitignore <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"Naive_Bayes-master.iml <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":"Email_NB.py <span style='color:#111;'> 6.71KB </span>","children":null,"spread":false},{"title":"Naive_Bay.py <span style='color:#111;'> 5.73KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 15.74KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 12.61KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 11.83KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 9.60KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 9.40KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 9.04KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 7.65KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 7.53KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 7.49KB </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 7.47KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 7.35KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 7.17KB </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 6.81KB </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 6.55KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 5.08KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 4.64KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 4.07KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"stopwords_cn.txt <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"6.txt <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"18.txt <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"12.txt <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"14.txt <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"13.txt <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 936B </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 875B </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 869B </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 754B </span>","children":null,"spread":false},{"title":"19.txt <span style='color:#111;'> 736B </span>","children":null,"spread":false},{"title":"16.txt <span style='color:#111;'> 725B </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"8.txt <span style='color:#111;'> 634B </span>","children":null,"spread":false},{"title":"23.txt <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"11.txt <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"15.txt <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"17.txt <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"10.txt <span style='color:#111;'> 442B </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明