public class SVMSGD extends StatModel
Modifier and Type | Field and Description |
---|---|
static int |
ASGD |
static int |
HARD_MARGIN |
static int |
SGD |
static int |
SOFT_MARGIN |
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier | Constructor and Description |
---|---|
protected |
SVMSGD(long addr) |
Modifier and Type | Method and Description |
---|---|
static SVMSGD |
__fromPtr__(long addr) |
static SVMSGD |
create() |
protected void |
finalize() |
float |
getInitialStepSize() |
float |
getMarginRegularization() |
int |
getMarginType() |
float |
getShift() |
float |
getStepDecreasingPower() |
int |
getSvmsgdType() |
TermCriteria |
getTermCriteria() |
Mat |
getWeights() |
static SVMSGD |
load(java.lang.String filepath) |
static SVMSGD |
load(java.lang.String filepath,
java.lang.String nodeName) |
void |
setInitialStepSize(float InitialStepSize) |
void |
setMarginRegularization(float marginRegularization) |
void |
setMarginType(int marginType) |
void |
setOptimalParameters() |
void |
setOptimalParameters(int svmsgdType,
int marginType) |
void |
setStepDecreasingPower(float stepDecreasingPower) |
void |
setSvmsgdType(int svmsgdType) |
void |
setTermCriteria(TermCriteria val) |
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, train, train, train
clear, getDefaultName, getNativeObjAddr, save
public static final int SGD
public static final int ASGD
public static final int SOFT_MARGIN
public static final int HARD_MARGIN
public static SVMSGD __fromPtr__(long addr)
public Mat getWeights()
public static SVMSGD create()
public static SVMSGD load(java.lang.String filepath, java.lang.String nodeName)
public static SVMSGD load(java.lang.String filepath)
public TermCriteria getTermCriteria()
public float getInitialStepSize()
public float getMarginRegularization()
public float getShift()
public float getStepDecreasingPower()
public int getMarginType()
public int getSvmsgdType()
public void setInitialStepSize(float InitialStepSize)
public void setMarginRegularization(float marginRegularization)
public void setMarginType(int marginType)
public void setOptimalParameters(int svmsgdType, int marginType)
public void setOptimalParameters()
public void setStepDecreasingPower(float stepDecreasingPower)
public void setSvmsgdType(int svmsgdType)
public void setTermCriteria(TermCriteria val)
Generated on Wed Jul 4 2018 14:01:58 UTC / OpenCV 3.4.2