-
C++实现朴素贝叶斯分类器
几个注意事项: 1.如果自己造数据在写.names文件时最后‘.’后面要加个回车,不加会出错! 2.数据文件分3个,例如训练集在golf.data和golf.names中,预测数据集在golftest.data中。 3.这个数据集和c45的数据集一样,读取和存储都是借鉴C45原作者的方法写的。 4.最后训练出来的分类模型存在一个3维数组当中PostFreq[类][属性][属性值],这样比如方便预测 PostFreq存放的某个类下某个属性的属性值的频率。 5.这个和我以前传的差不多 我主要把那个模型也就是PostFreq[类][属性][属性值]中的值都写进“.model”文件了 ,然后在项目下有两个工程一个工程是用来 训练模型然后写进“.model”文件,另一个工程是预测的,它运行时只要读取“.model”文件就可以进行预测了,就不用在向我前面上传那个工程每回都要 训练一个PostFreq[类][属性][属性值]。 6.在VS2005下运行要先上载其中一个工程在运行另一个工程哦 7.所有的数据文件和生成的模型文件都放在data文件夹里了 这样方便2个工程读取数据。
- 2023-06-20 03:20:04下载
- 积分:1
-
因此,在鼠标程序失控
使鼠标失控得程序-so out of control in the mouse procedure
- 2022-02-03 18:48:20下载
- 积分:1
-
CATIA二次开发复制功能代码
CAA二次开发一个模块的功能介绍,复制功能的实现,通过交互式点选 复制零件
- 2022-02-27 03:41:19下载
- 积分:1
-
Students with the fundamental information management using c/c++ linked list dat...
学生基本信息管理 用c/c++ 数据结构 链表-Students with the fundamental information management using c/c++ linked list data structure
- 2022-02-13 13:57:24下载
- 积分:1
-
自己制作的一个七星彩开奖器,通过按钮逐个产生一组开奖结果...
自己制作的一个七星彩开奖器,通过按钮逐个产生一组开奖结果-To produce their own as a lottery prize Qixing, and through the button generated by a group of lottery results
- 2022-05-12 18:03:36下载
- 积分:1
-
简单的宾馆管理系统,实现最简单的功能,适合初学者参考!...
简单的宾馆管理系统,实现最简单的功能,适合初学者参考!-Simple hotel management system, to achieve the most simple function for advanced users!
- 2022-02-13 18:38:59下载
- 积分:1
-
Visual Basic class module for danamically redimension a form content as the form...
Visual Basic class module for danamically redimension a form content as the form is redimensioned.
- 2022-01-25 23:08:36下载
- 积分:1
-
imitation At the time of switching interface
仿金山毒霸切换界面 -imitation At the time of switching interface
- 2022-07-17 02:54:33下载
- 积分:1
-
labwindows modbus rtu 源码
使用labwindows 2013sp2 编写的 modbus rtu 源码,纯c
- 2023-02-03 10:10:05下载
- 积分:1
-
通过编程实现递归与分治策略的有关算法,理解递归与分治策略算法的原理,掌握递归与分治策略基本思想与应用技巧。...
通过编程实现递归与分治策略的有关算法,理解递归与分治策略算法的原理,掌握递归与分治策略基本思想与应用技巧。 -Through the realization of recursive programming strategy and separation of the relevant algorithms, understanding of the recursive algorithm with sub-rule strategy of the principle of recursion and divided master the basic strategy of thinking and application skills.
- 2022-01-25 15:52:47下载
- 积分:1