Click or drag to resize
Accord.NET (logo)

KNearestNeighbors Properties

The KNearestNeighbors type exposes the following members.

Properties
  NameDescription
Public propertyClassCount Obsolete.
Gets the number of class labels handled by this classifier.
Public propertyDistance
Gets or sets the distance function used as a distance metric between data points.
(Inherited from BaseKNearestNeighborsTModel, TInput, TDistance.)
Public propertyInputs
Gets the set of points given as input of the algorithm.
(Inherited from BaseKNearestNeighborsTModel, TInput, TDistance.)
Public propertyK
Gets or sets the number of nearest neighbors to be used in the decision. Default is 5.
(Inherited from BaseKNearestNeighborsTModel, TInput, TDistance.)
Public propertyNumberOfClasses
Gets the number of classes expected and recognized by the classifier.
(Inherited from ClassifierBaseTInput, TClasses.)
Public propertyNumberOfInputs
Gets the number of inputs accepted by the model.
(Inherited from TransformBaseTInput, TOutput.)
Public propertyNumberOfOutputs
Gets the number of outputs generated by the model.
(Inherited from TransformBaseTInput, TOutput.)
Public propertyOutputs
Gets the set of labels associated with each Inputs point.
(Inherited from BaseKNearestNeighborsTModel, TInput, TDistance.)
Public propertyToken
Gets or sets a cancellation token that can be used to stop the learning algorithm while it is running.
(Inherited from BaseKNearestNeighborsTModel, TInput, TDistance.)
Top
See Also