Trees | Indices | Help |
|
---|
|
object --+ | KNNModel.KNNModel --+ | KNNRegressionModel
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
|
Generates a prediction for an example by looking at its closest neighbors **Arguments** - examples: the example to be classified - appendExamples: if this is nonzero then the example will be stored on this model - weightedAverage: if provided, the neighbors' contributions to the value will be weighed by their reciprocal square distance - 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 |