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

 classes
 xs
 ys
 k

Detailed Description

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.

Definition at line 32 of file kNN.py.


Constructor & Destructor Documentation

def Bio.kNN.kNN.__init__ (   self)
kNN()

Definition at line 42 of file kNN.py.

00042 
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 kNN.py.

Definition at line 47 of file kNN.py.

Definition at line 45 of file kNN.py.

Definition at line 46 of file kNN.py.


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