|
KNearestNeighbors Constructor (Int32, Int32, Double, Int32, IMetricDouble)
|
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, IDistance<T> distance) constructor instead.")]
public KNearestNeighbors(
int k,
int classes,
double[][] inputs,
int[] outputs,
IMetric<double[]> distance
)
<ObsoleteAttribute("Please use KNearestNeighbors(int k, IDistance<T> distance) constructor instead.")>
Public Sub New (
k As Integer,
classes As Integer,
inputs As Double()(),
outputs As Integer(),
distance As IMetric(Of Double())
)
Request Example
View SourceParameters
- k
- Type: SystemInt32
The number of nearest neighbors to be used in the decision. - classes
- Type: SystemInt32
The number of classes in the classification problem. - inputs
- Type: SystemDouble
The input data points. - outputs
- Type: SystemInt32
The associated labels for the input points. - distance
- Type: Accord.Math.DistancesIMetricDouble
The distance measure to use.
See Also