Trees | Indices | Help |
|
---|
|
object --+ | KNNModel.KNNModel --+ | KNNClassificationModel
This is used to represent a k-nearest neighbor classifier
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Classify a an example by looking at its closest neighbors The class assigned to this example is same as the class for the mojority of its _k neighbors **Arguments** - examples: the example to be classified - appendExamples: if this is nonzero then the example will be stored on this model - neighborList: if provided, will be used to return the list of neighbors **Returns** - the classification of _example_ |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Feb 1 16:13:01 2018 | http://epydoc.sourceforge.net |