Click or drag to resize
Accord.NET (logo)

NaiveBayesCompute Method (Int32, Double, Double)

Note: This API is now obsolete.

Computes the most likely class for a given instance.

Namespace:  Accord.MachineLearning.Bayes
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
[ObsoleteAttribute("Please use Decide or LogLikelihood instead.")]
public int Compute(
	int[] input,
	out double logLikelihood,
	out double[] responses
)
Request Example View Source

Parameters

input
Type: SystemInt32
The input instance.
logLikelihood
Type: SystemDouble
The log-likelihood for the instance.
responses
Type: SystemDouble
The response probabilities for each class.

Return Value

Type: Int32
The most likely class for the instance.
See Also