Click or drag to resize
Accord.NET (logo)

BaseKNearestNeighborsTModel, TInput, TDistanceK Property

Gets or sets the number of nearest neighbors to be used in the decision. Default is 5.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public int K { get; set; }
Request Example View Source

Property Value

Type: Int32
The number of neighbors.
See Also