Menu

Tree [bc5ee1] master /
 History

HTTPS access


File Date Author Commit
 README.md 2019-01-23 David Ferreira David Ferreira [fd1612] Update README.md
 accuracy_knn.m 2019-01-23 David Ferreira David Ferreira [29200b] Update accuracy_knn.m
 classifier_knn.m 2019-01-23 David Ferreira David Ferreira [bc5ee1] Update classifier_knn.m
 sample chart.png 2019-01-23 David Ferreira David Ferreira [b57bb7] Add files via upload

Read Me

k-Nearest Neighbors (kNN) - MATLAB

Function
1. classifier_knn
2. accuracy_knn

Description
1. Returns the estimated label of one test instance, the k nearest training instances, the k nearest training labels and creates a chart circulating the nearest training instances (chart 2-D of the first two features of each instance).
2. Returns the estimated labels of one or multiple test instances and the accuracy of the estimates.