在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):amoudgl/kNN-classifier开源软件地址(OpenSource Url):https://github.com/amoudgl/kNN-classifier开源编程语言(OpenSource Language):MATLAB 100.0%开源软件介绍(OpenSource Introduction):kNN-ClassifierkNN classifier built in MATLAB. It is tested on five datasets:
Datasets are taken from UCI Machine Learning Repository. Structure of repositoryRepository contains five folders for each dataset. Each folder further contains two files:
Accuracy plots are also included in the folder of each dataset. ImplementationFirst data is stored and divided into yequal parts (yfold). One part is declared as test data and rest is training data. This completes the training phase. During test phase, a test sample is picked and all the training samples are sorted according to normal or (weighted) euclidean distance from test sample. For first kdata points (in sorted list) polling is done. The class with maximum frequency is allotted to test data sample. Same procedure is repeated for all the test data points. For a particular dataset, k is varied from 1 to 5 and y is varied from 2 to 5. Tie break: It may happen when k is even. Two classes may have same frequency during polling. In this case, sum of distances for both the classes is calculated. Class with minimum sum is allotted to test data sample. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论