C# Class OpenCvSharp.ML.LogisticRegression

Implements Logistic Regression classifier.
Inheritance: StatModel
Datei anzeigen Open project: shimat/opencvsharp

Public Methods

Method Description
Create ( ) : LogisticRegression

Creates the empty model.

GetLearntThetas ( ) : Mat

This function returns the trained paramters arranged across rows. For a two class classifcation problem, it returns a row matrix. It returns learnt paramters of the Logistic Regression as a matrix of type CV_32F.

Predict ( InputArray samples, OutputArray results = null, int flags ) : float

Predicts responses for input samples and returns a float type.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

LogisticRegression ( IntPtr p ) : System

Creates instance by raw pointer cv::ml::LogisticRegression*

Method Details

Create() public static method

Creates the empty model.
public static Create ( ) : LogisticRegression
return LogisticRegression

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

GetLearntThetas() public method

This function returns the trained paramters arranged across rows. For a two class classifcation problem, it returns a row matrix. It returns learnt paramters of the Logistic Regression as a matrix of type CV_32F.
public GetLearntThetas ( ) : Mat
return Mat

LogisticRegression() protected method

Creates instance by raw pointer cv::ml::LogisticRegression*
protected LogisticRegression ( IntPtr p ) : System
p System.IntPtr
return System

Predict() public method

Predicts responses for input samples and returns a float type.
public Predict ( InputArray samples, OutputArray results = null, int flags ) : float
samples InputArray 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 OutputArray Predicted labels as a column matrix of type CV_32S.
flags int Not used.
return float