public class LogisticRegression extends StatModel
Modifier and Type | Field and Description |
---|---|
static int |
BATCH |
static int |
MINI_BATCH |
static int |
REG_DISABLE |
static int |
REG_L1 |
static int |
REG_L2 |
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier | Constructor and Description |
---|---|
protected |
LogisticRegression(long addr) |
Modifier and Type | Method and Description |
---|---|
static LogisticRegression |
__fromPtr__(long addr) |
static LogisticRegression |
create() |
protected void |
finalize() |
Mat |
get_learnt_thetas() |
int |
getIterations() |
double |
getLearningRate() |
int |
getMiniBatchSize() |
int |
getRegularization() |
TermCriteria |
getTermCriteria() |
int |
getTrainMethod() |
static LogisticRegression |
load(java.lang.String filepath) |
static LogisticRegression |
load(java.lang.String filepath,
java.lang.String nodeName) |
float |
predict(Mat samples) |
float |
predict(Mat samples,
Mat results) |
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) |
calcError, empty, getVarCount, isClassifier, isTrained, train, train, train
clear, getDefaultName, getNativeObjAddr, save
public static final int REG_DISABLE
public static final int REG_L1
public static final int REG_L2
public static final int BATCH
public static final int MINI_BATCH
public static LogisticRegression __fromPtr__(long addr)
public Mat get_learnt_thetas()
public static LogisticRegression create()
public static LogisticRegression load(java.lang.String filepath, java.lang.String nodeName)
public static LogisticRegression load(java.lang.String filepath)
public TermCriteria getTermCriteria()
public double getLearningRate()
public int getIterations()
public int getMiniBatchSize()
public int getRegularization()
public int getTrainMethod()
public void setIterations(int val)
public void setLearningRate(double val)
public void setMiniBatchSize(int val)
public void setRegularization(int val)
public void setTermCriteria(TermCriteria val)
public void setTrainMethod(int val)
Generated on Sun Apr 7 2019 01:18:56 UTC / OpenCV 3.4.6