File:Knnclass.png

Summary

Description
English: Example of k-NN classification. The test sample (green dot) should be classified either to the first class of blue dots or to the second class of red dots. If k = 3 (black line circle) it is assigned to the second class because there are 2 red dots and only 1 blue dots inside the inner circle. If k = 5 (orange line circle) it is assigned to the first class (3 blue dots vs. 2 red dots inside the outer circle).
Date
Source Own work
Author Maryamvaez

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Knnclass.png
Category:Self-published work Category:Graph algorithms Category:Machine learning algorithms
Category:CC-BY-SA-4.0 Category:Graph algorithms Category:Machine learning algorithms Category:Self-published work