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

Class kNN

source code

object --+

Holds information necessary to do nearest neighbors classification.

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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]


source code 

Overrides: object.__init__