|
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
)
<ObsoleteAttribute("Please use Decide or LogLikelihood instead.")>
Public Function Compute (
input As Integer(),
<OutAttribute> ByRef logLikelihood As Double,
<OutAttribute> ByRef responses As Double()
) As Integer
Request Example
View SourceParameters
- 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:
Int32The most likely class for the instance.
See Also