| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
kdtknn
A simple wrapper of scipy.spatial.kdtree.KDTree
Since the scipy KDTree implementation does not allow for incrementally adding data points, the entire KD-tree is rebuilt on the first call to 'query' after a call to 'addEvidence'. For this reason it is more efficient to add training data in batches.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Basic setup.
|
|
Classify a set of test points given their k nearest neighbors. 'points' should be a numpy array with each row corresponding to a specific query. Returns the estimated class according to supplied method (currently only 'mode' and 'mean' are supported) |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 5 00:49:16 2012 | http://epydoc.sourceforge.net |