Click or drag to resize

LogisticRegressionPredict Method (InputArray, OutputArray, Int32)

Predicts responses for input samples and returns a float type.

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public float Predict(
	InputArray samples,
	OutputArray results = null,
	int flags = 0
)

Parameters

samples
Type: OpenCvSharpInputArray
The input data for the prediction algorithm. Matrix [m x n], where each row contains variables (features) of one object being classified. Should have data type CV_32F.
results (Optional)
Type: OpenCvSharpOutputArray
Predicted labels as a column matrix of type CV_32S.
flags (Optional)
Type: SystemInt32
Not used.

Return Value

Type: Single
See Also