Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.kNN.kNN Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes


Detailed Description

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.

Definition at line 32 of file

Constructor & Destructor Documentation

def Bio.kNN.kNN.__init__ (   self)

Definition at line 42 of file

00043     def __init__(self):
00044         """kNN()"""
00045         self.classes = set()
00046         self.xs = []
00047         self.ys = []
00048         self.k = None

Here is the caller graph for this function:

Member Data Documentation

Definition at line 44 of file

Definition at line 47 of file

Definition at line 45 of file

Definition at line 46 of file

The documentation for this class was generated from the following file: