文件名称:knn
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-28
- 文件大小:
- 290kb
- 下载次数:
- 0次
- 提 供 者:
- 韩*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本程序中,训练样本集含有30个样本,矢量长度为5,对样本{1,18,11,11,0.5513196}进行K=5的K-最近邻分类.
样本从文件data.txt中读取,程序运行结果显示所有样本以及其类别,待分类样本所属的类别({1,18,11,11,0.5513196}属于"2"类),以及它的5个最近邻的类别和与它之间的距离。-In this program, the training sample set containing 30 samples, the vector length sample the {1,18,11,11,0.5513196} K = 5, K-nearest neighbor classifier. Samples read from the file data.txt The program runs The results showed that all the samples, as well as its class, be classified sample category ({1,18,11,11,0.5513196} belong to the " 2" category), as well as its five nearest neighbor category and it distance.
样本从文件data.txt中读取,程序运行结果显示所有样本以及其类别,待分类样本所属的类别({1,18,11,11,0.5513196}属于"2"类),以及它的5个最近邻的类别和与它之间的距离。-In this program, the training sample set containing 30 samples, the vector length sample the {1,18,11,11,0.5513196} K = 5, K-nearest neighbor classifier. Samples read from the file data.txt The program runs The results showed that all the samples, as well as its class, be classified sample category ({1,18,11,11,0.5513196} belong to the " 2" category), as well as its five nearest neighbor category and it distance.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
K-最近邻分类\data.txt
............\knn\classify.cpp
............\...\classify.dsp
............\...\classify.dsw
............\...\classify.ncb
............\...\classify.opt
............\...\classify.plg
............\...\Debug\classify.exe
............\...\.....\classify.ilk
............\...\.....\classify.obj
............\...\.....\classify.pch
............\...\.....\classify.pdb
............\...\.....\vc60.idb
............\...\.....\vc60.pdb
............\...\Myknn.dsp
............\...\Myknn.dsw
............\...\Myknn.ncb
............\...\Myknn.opt
............\...\Myknn.plg
............\...\Output.dat
............\KNN程序的说明.txt
............\输出结果.txt
............\knn\Debug
............\knn
K-最近邻分类