C# 클래스 OpenCvSharp.ML.LogisticRegression

Implements Logistic Regression classifier.
상속: StatModel
파일 보기 프로젝트 열기: shimat/opencvsharp

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

LogisticRegression ( IntPtr p ) : System

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

메소드 상세

Create() 공개 정적인 메소드

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

Dispose() 보호된 메소드

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. ///
리턴 void

GetLearntThetas() 공개 메소드

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
리턴 Mat

LogisticRegression() 보호된 메소드

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

Predict() 공개 메소드

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.
리턴 float