Skip to main content
Fig. 6 | BMC Medical Informatics and Decision Making

Fig. 6

From: Comparing different supervised machine learning algorithms for disease prediction

Fig. 6

A simplified illustration of the K-nearest neighbour algorithm. When K = 3, the sample object (‘star’) is classified as ‘black’ since it gets more ‘vote’ from the ‘black’ class. However, for K = 5 the same sample object is classified as ‘red’ since it now gets more ‘vote’ from the ‘red’ class

Back to article page