文件名称:DM4
- 所属分类:
- 人工智能/神经网络/遗传算法
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 127kb
- 下载次数:
- 0次
- 提 供 者:
- x**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
执行流程:
1. 用户输入参数:K的选择,训练数据,测试数据的路径;
2. 读取训练数据集和测试数据集文件,用ArffFileReader类读取并组织起InstanceSet数据结构;
3. 利用上面的相似度量标准,对每一个测试集中的Instance,计算与其最相似的K个训练集中的Instance,通过投票进行分类,将分类结果存储经Instance的成员变量targetGuess中;
4. 对分类结果进行度量,包括分类正确率,各种类别实例的Precision,Recall;Confusion Matirx;
-Implementation process: 1. User input parameters: K' s choice, the training data, test data path 2. To read the training data set and test data sets document, read and use ArffFileReader category InstanceSet organize the data structure 3. The use of the above similarity metrics for each concentration of a test Instance, the calculation of the K most similar training focused Instance, by voting for classification, the classification results stored by a member of Instance variables in targetGuess 4. on the classification results of measurement, including the classification accuracy of various types of examples of Precision, Recall Confusion Matirx
1. 用户输入参数:K的选择,训练数据,测试数据的路径;
2. 读取训练数据集和测试数据集文件,用ArffFileReader类读取并组织起InstanceSet数据结构;
3. 利用上面的相似度量标准,对每一个测试集中的Instance,计算与其最相似的K个训练集中的Instance,通过投票进行分类,将分类结果存储经Instance的成员变量targetGuess中;
4. 对分类结果进行度量,包括分类正确率,各种类别实例的Precision,Recall;Confusion Matirx;
-Implementation process: 1. User input parameters: K' s choice, the training data, test data path 2. To read the training data set and test data sets document, read and use ArffFileReader category InstanceSet organize the data structure 3. The use of the above similarity metrics for each concentration of a test Instance, the calculation of the K most similar training focused Instance, by voting for classification, the classification results stored by a member of Instance variables in targetGuess 4. on the classification results of measurement, including the classification accuracy of various types of examples of Precision, Recall Confusion Matirx
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2008212560-2008212552-DM4
.........................\readme.txt
.........................\可执行程序
.........................\..........\dataset
.........................\..........\.......\soybean-large-test.arff
.........................\..........\.......\soybean-large-train.arff
.........................\..........\knn.bat
.........................\..........\myKNN.jar
.........................\源代码
.........................\......\core
.........................\......\....\Attribute.java
.........................\......\....\Instance.java
.........................\......\....\InstanceSet.java
.........................\......\....\KNNcore.java
.........................\......\....\Target_Simil_Node.java
.........................\......\evaluate
.........................\......\........\Evaluate.java
.........................\......\file
.........................\......\....\ArffFileReader.java
.........................\......\util
.........................\......\....\MainDriver.java
.........................\......\....\QuickSort.java
.........................\设计及说明文档.docx
.........................\readme.txt
.........................\可执行程序
.........................\..........\dataset
.........................\..........\.......\soybean-large-test.arff
.........................\..........\.......\soybean-large-train.arff
.........................\..........\knn.bat
.........................\..........\myKNN.jar
.........................\源代码
.........................\......\core
.........................\......\....\Attribute.java
.........................\......\....\Instance.java
.........................\......\....\InstanceSet.java
.........................\......\....\KNNcore.java
.........................\......\....\Target_Simil_Node.java
.........................\......\evaluate
.........................\......\........\Evaluate.java
.........................\......\file
.........................\......\....\ArffFileReader.java
.........................\......\util
.........................\......\....\MainDriver.java
.........................\......\....\QuickSort.java
.........................\设计及说明文档.docx