OpenCV 3.0.0

org.opencv.ml
Class LogisticRegression

java.lang.Object
  extended by org.opencv.core.Algorithm
      extended by org.opencv.ml.StatModel
          extended by org.opencv.ml.LogisticRegression

public class LogisticRegression
extends StatModel


Field Summary
static int BATCH
           
static int MINI_BATCH
           
static int REG_DISABLE
           
static int REG_L1
           
static int REG_L2
           
 
Fields inherited from class org.opencv.ml.StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
 
Method Summary
static LogisticRegression create()
           
 Mat get_learnt_thetas()
           
 int getIterations()
           
 double getLearningRate()
           
 int getMiniBatchSize()
           
 int getRegularization()
           
 TermCriteria getTermCriteria()
           
 int getTrainMethod()
           
 float predict(Mat samples)
           
 float predict(Mat samples, Mat results, int flags)
           
 void setIterations(int val)
           
 void setLearningRate(double val)
           
 void setMiniBatchSize(int val)
           
 void setRegularization(int val)
           
 void setTermCriteria(TermCriteria val)
           
 void setTrainMethod(int val)
           
 
Methods inherited from class org.opencv.ml.StatModel
empty, getVarCount, isClassifier, isTrained, train
 
Methods inherited from class org.opencv.core.Algorithm
clear, getDefaultName, save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BATCH

public static final int BATCH
See Also:
Constant Field Values

MINI_BATCH

public static final int MINI_BATCH
See Also:
Constant Field Values

REG_DISABLE

public static final int REG_DISABLE
See Also:
Constant Field Values

REG_L1

public static final int REG_L1
See Also:
Constant Field Values

REG_L2

public static final int REG_L2
See Also:
Constant Field Values
Method Detail

create

public static LogisticRegression create()

get_learnt_thetas

public Mat get_learnt_thetas()

getIterations

public int getIterations()

getLearningRate

public double getLearningRate()

getMiniBatchSize

public int getMiniBatchSize()

getRegularization

public int getRegularization()

getTermCriteria

public TermCriteria getTermCriteria()

getTrainMethod

public int getTrainMethod()

predict

public float predict(Mat samples)
Overrides:
predict in class StatModel

predict

public float predict(Mat samples,
                     Mat results,
                     int flags)
Overrides:
predict in class StatModel

setIterations

public void setIterations(int val)

setLearningRate

public void setLearningRate(double val)

setMiniBatchSize

public void setMiniBatchSize(int val)

setRegularization

public void setRegularization(int val)

setTermCriteria

public void setTermCriteria(TermCriteria val)

setTrainMethod

public void setTrainMethod(int val)

OpenCV 3.0.0 Documentation