|
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 Score(input, out decision) method instead.")]
public int Compute(
TInput input,
out double response
)
<ObsoleteAttribute("Please use the Score(input, out decision) method instead.")>
Public Function Compute (
input As TInput,
<OutAttribute> ByRef response As Double
) As Integer
Request Example
View SourceParameters
- input
- Type: TInput
A point to be classified. - response
- Type: SystemDouble
A value between 0 and 1 giving
the strength of the classification in relation to the
other classes.
Return Value
Type:
Int32The most likely label for the given point.
See Also