Trees | Indices | Help |
|
---|
|
object --+ | KNNModel
This is a base class used by KNNClassificationModel and KNNRegressionModel to represent a k-nearest neighbor predictor. In general one of this child classes needs to be instantiated. _KNNModel_s can save the following pieces of internal state, accessible via standard setter/getter functions - the child object store additional stuff: 1) _Examples_: a list of examples which have been predicted (either classified or values predicted) 2) _TrainingExamples_: List of training examples (since this is a KNN model these examples along with the value _k_ below define the model) 3) _TestExamples_: the list of examples used to test the model 4) _k_: the number of closest neighbors used for prediction
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 23 18:49:15 2016 | http://epydoc.sourceforge.net |