Click or drag to resize
Accord.NET (logo)

BaseKNearestNeighborsTModel, TInput, TDistanceScore Method (TInput, Int32)

Computes a numerical score measuring the association between the given input vector and a given classIndex.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public override double Score(
	TInput input,
	int classIndex
)
Request Example View Source

Parameters

input
Type: TInput
The input vector.
classIndex
Type: SystemInt32
The index of the class whose score will be computed.

Return Value

Type: Double
System.Double.

Implements

IMultilabelScoreClassifierTInputScore(TInput, Int32)
See Also