/KNearestNeighbour

A classifier using KNearest Neighbour algorithm. Implemented with Ruby.

Primary LanguageRuby

KNearestNeighbour

To use default parameters, just run "ruby main.rb".

Arguments can be provided as "ruby main.rb [training_file] [test_file]".

Example of how to run with parameters (just copy it into console for convenience):

% ruby main.rb iris-training.txt iris-test.txt

All arguments are optional. If they are not provided, default values will be used.

Default parameters:

  • training_file: "iris-training.txt"
  • test_file: "iris-test.txt"