Machine learning assignment 1
--setup--
in the root directory run npm install
all commands are called from the root directory
-- part 1 --
K nearest neighbours
run with node KNN.js <training file path> <test file path> <k nujmber>
example node KNN.js ./part1/iris-training.txt ./part1/iris-test.txt 1
K clusters
run with node KNN.js <training file path> <test file path>
example node KNNclusters.js ./part1/iris-training.txt ./part1/iris-test.txt
-- part 2 --
Decision tree
run with node DT.js <training file path> <test file path>
example node DT.js ./part2/hepatitis-training-run01.dat ./part2/hepatitis-test-run01.dat
-- part 3 --
Perseptron
run with node Perceptron.js <path>
example node Perceptron.js ./part3/image.data
or with a test file node Perceptron.js ./part3/image.data ./part3/image_test.data