|
KNearestNeighborsTInput Constructor (Int32, Int32, TInput, Int32, IDistanceTInput)
|
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,
TInput[] inputs,
int[] outputs,
IDistance<TInput> distance
)
<ObsoleteAttribute("Please use KNearestNeighbors(int k, IDistance<T> distance) constructor instead.")>
Public Sub New (
k As Integer,
classes As Integer,
inputs As TInput(),
outputs As Integer(),
distance As IDistance(Of TInput)
)
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: TInput
The input data points. - outputs
- Type: SystemInt32
The associated labels for the input points. - distance
- Type: Accord.Math.DistancesIDistanceTInput
The distance measure to use in the decision.
See Also