/PythonKnn

A Knn algorithm built in Python using the numpy library for the algorithm and the Pygame library for the GUI.

Apache License 2.0Apache-2.0

PythonKnn

A Knn algorithm built in Python using the numpy library for the algorithm and the Pygame library for the GUI. Once you press "Dessiner", the white points will become red or blue depending of there closest neighboor.

How to use ?

  1. Required libraries
pip install numpy
pip install numpy
pip install matplotlib
  1. Modifying the launch parameters Rendez-vous dans conf.ini points_rouges : The number of red points points_bleus : The number of blue points points_blancs : The number of white points (which will be red or blue once you press "Dessiner") w_x : The width of the window w_y : The height of the window