|
KNearestNeighbors Constructor (Int32, Double, Int32)
|
Note: This API is now obsolete.
Namespace:
Accord.MachineLearning
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax [ObsoleteAttribute("Please use KNearestNeighbors(int k) constructor instead.")]
public KNearestNeighbors(
int k,
double[][] inputs,
int[] outputs
)
<ObsoleteAttribute("Please use KNearestNeighbors(int k) constructor instead.")>
Public Sub New (
k As Integer,
inputs As Double()(),
outputs As Integer()
)
Request Example
View SourceParameters
- k
- Type: SystemInt32
The number of nearest neighbors to be used in the decision. - inputs
- Type: SystemDouble
The input data points. - outputs
- Type: SystemInt32
The associated labels for the input points.
See Also