| LogisticRegressionPredict Method (InputArray, OutputArray, Int32) |
Predicts responses for input samples and returns a float type.
Namespace:
OpenCvSharp.ML
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public float Predict(
InputArray samples,
OutputArray results = null,
int flags = 0
)
Public Function Predict (
samples As InputArray,
Optional results As OutputArray = Nothing,
Optional flags As Integer = 0
) As Single
public:
float Predict(
InputArray^ samples,
OutputArray^ results = nullptr,
int flags = 0
)
member Predict :
samples : InputArray *
?results : OutputArray *
?flags : int
(* Defaults:
let _results = defaultArg results null
let _flags = defaultArg flags 0
*)
-> float32
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[Missing <returns> documentation for "M:OpenCvSharp.ML.LogisticRegression.Predict(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32)"]
See Also