|
KNearestNeighborsTInputCompute Method (TInput, Double)
|
Note: This API is now obsolete.
Computes the most likely label of a new given point.
Namespace:
Accord.MachineLearning
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax [ObsoleteAttribute("Please use the Scores(input, out decision) method instead.")]
public virtual int Compute(
TInput input,
out double[] scores
)
<ObsoleteAttribute("Please use the Scores(input, out decision) method instead.")>
Public Overridable Function Compute (
input As TInput,
<OutAttribute> ByRef scores As Double()
) As Integer
Request Example
View SourceParameters
- input
- Type: TInput
A point to be classified. - scores
- Type: SystemDouble
The distance score for each possible class.
Return Value
Type:
Int32The most likely label for the given point.
See Also