I have a database http://archive.ics.uci.edu/ml/machine-learning-databases/wine/
There are 3 classes in my database, 1,2 and 3. 178 total instances. I want to be able to choose a single test vector and calculate the euclidian distance ( example: sqrt((x2-x1)^2+(y2-y1)^2) ) between the mean vector from each class and this test vector. Then i aught to compare each calculated distance and choose de smallest. The smallest distance will point to the class where our test vector belongs.
Is there anyone that can give me a piece of advice or some link to a NP example usage?
Best Answer