Click or drag to resize
Accord.NET (logo)

BaseKNearestNeighborsTModel, TInput, TDistance Properties

The BaseKNearestNeighborsTModel, TInput, TDistance generic type exposes the following members.

Public propertyDistance
Gets or sets the distance function used as a distance metric between data points.
Public propertyInputs
Gets the set of points given as input of the algorithm.
Public propertyK
Gets or sets the number of nearest neighbors to be used in the decision. Default is 5.
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.
Public propertyToken
Gets or sets a cancellation token that can be used to stop the learning algorithm while it is running.
See Also