Click or drag to resize
Accord.NET (logo)

BinaryLikelihoodClassifierBaseTInputProbability Method (TInput, Int32, Double)

Predicts a class label for each input vector, returning the probability that each vector belongs to its predicted class.

Namespace:  Accord.MachineLearning
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public double[] Probability(
	TInput[] input,
	ref int[] decision,
	double[] result
)
Request Example View Source

Parameters

input
Type: TInput
A set of input vectors.
decision
Type: SystemInt32
The class labels associated with each input vector, as predicted by the classifier. If passed as null, the classifier will create a new array.
result
Type: SystemDouble
An array where the probabilities will be stored, avoiding unnecessary memory allocations.

Return Value

Type: Double
System.Double[].

Implements

IMulticlassLikelihoodClassifierBaseTInput, TClassesProbability(TInput, TClasses, Double)
See Also