Package pyvision :: Package ml :: Module knn
[hide private]
[frames] | no frames]

Module knn

source code

Classes [hide private]
  PNorm
  RobustPNorm
  KNearestNeighbors
Basic k nearest neighbors algorithm.
  FLANNTree
  AKNNTest
Functions [hide private]
 
chisquared(points, data)
Compute the chi squared statistic between histograms
source code
 
bhattacharyya(points, data)
Compute bhattacharyya distance for histograms.
source code
 
correlation(points, data, reg=1e-05)
Compute the correlation between points and data where points are stored as rows.
source code
Variables [hide private]
  FLANN_IMPORTED = True
  TEST_POINTS_5D = array([[ 0.09273629, 0.86328785, 0.82759423...
  __package__ = 'pyvision.ml'
Variables Details [hide private]

TEST_POINTS_5D

Value:
array([[ 0.09273629,  0.86328785,  0.82759423,  0.06358449,  0.6964691\
 ],
       [ 0.38921242,  0.27196045,  0.47531837,  0.81767623,  0.0030482\
7],
       [ 0.67244411,  0.01582804,  0.14877885,  0.6392914 ,  0.6445385\
3],
       ..., 
       [ 0.8509048 ,  0.16696444,  0.40163772,  0.34617404,  0.8249275\
...