k Nearest Neighbors implementation in Pharo.
More information on the pharo-ai wiki page: https://github.com/pharo-ai/wiki/blob/master/wiki/MachineLearning/k-nearest-neighbors.md
To install k nearest neighbours, go to the Playground (Ctrl+OW) in your Pharo image and execute the following Metacello script (select it and press Do-it button or Ctrl+D):
Metacello new
baseline: 'AIKNearestNeighbors';
repository: 'github://pharo-ai/k-nearest-neighbors/src';
load.
If you want to add a dependency on kNN to your project, include the following lines into your baseline method:
spec
baseline: 'AIKNearestNeighbors'
with: [ spec repository: 'github://pharo-ai/k-nearest-neighbors/src' ].
If you are new to baselines and Metacello, check out the Baselines tutorial on Pharo Wiki.