Package Bio :: Module kNN :: Class kNN
[hide private]
[frames] | no frames]

Class kNN

source code

Holds information necessary to do nearest neighbors classification.

Members: classes Set of the possible classes. xs List of the neighbors. ys List of the classes that the neighbors belong to. k Number of neighbors to look at.

Instance Methods [hide private]
 
__init__() source code