Click or drag to resize

NormalBayesClassifierPredictProb Method

Predicts the response for sample(s).

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public float PredictProb(
	InputArray inputs,
	OutputArray outputs,
	OutputArray outputProbs,
	int flags = 0
)

Parameters

inputs
Type: OpenCvSharpInputArray
outputs
Type: OpenCvSharpOutputArray
outputProbs
Type: OpenCvSharpOutputArray
flags (Optional)
Type: SystemInt32

Return Value

Type: Single
Remarks
The method estimates the most probable classes for input vectors. Input vectors (one or more) are stored as rows of the matrix inputs. In case of multiple input vectors, there should be one output vector outputs. The predicted class for a single input vector is returned by the method. The vector outputProbs contains the output probabilities corresponding to each element of result.
See Also