|
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; }
Public Property K As Integer
Get
Set
Request Example
View SourceProperty Value
Type:
Int32The number of neighbors.
See Also