public class SVM extends StatModel
Modifier and Type | Field and Description |
---|---|
static int |
C |
static int |
C_SVC |
static int |
CHI2 |
static int |
COEF |
static int |
CUSTOM |
static int |
DEGREE |
static int |
EPS_SVR |
static int |
GAMMA |
static int |
INTER |
static int |
LINEAR |
static int |
NU |
static int |
NU_SVC |
static int |
NU_SVR |
static int |
ONE_CLASS |
static int |
P |
static int |
POLY |
static int |
RBF |
static int |
SIGMOID |
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier | Constructor and Description |
---|---|
protected |
SVM(long addr) |
Modifier and Type | Method and Description |
---|---|
static SVM |
__fromPtr__(long addr) |
static SVM |
create() |
protected void |
finalize() |
double |
getC() |
Mat |
getClassWeights() |
double |
getCoef0() |
double |
getDecisionFunction(int i,
Mat alpha,
Mat svidx) |
static ParamGrid |
getDefaultGridPtr(int param_id) |
double |
getDegree() |
double |
getGamma() |
int |
getKernelType() |
double |
getNu() |
double |
getP() |
Mat |
getSupportVectors() |
TermCriteria |
getTermCriteria() |
int |
getType() |
Mat |
getUncompressedSupportVectors() |
static SVM |
load(java.lang.String filepath) |
void |
setC(double val) |
void |
setClassWeights(Mat val) |
void |
setCoef0(double val) |
void |
setDegree(double val) |
void |
setGamma(double val) |
void |
setKernel(int kernelType) |
void |
setNu(double val) |
void |
setP(double val) |
void |
setTermCriteria(TermCriteria val) |
void |
setType(int val) |
boolean |
trainAuto(Mat samples,
int layout,
Mat responses) |
boolean |
trainAuto(Mat samples,
int layout,
Mat responses,
int kFold,
ParamGrid Cgrid,
ParamGrid gammaGrid,
ParamGrid pGrid,
ParamGrid nuGrid,
ParamGrid coeffGrid,
ParamGrid degreeGrid,
boolean balanced) |
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, train, train, train
clear, getDefaultName, getNativeObjAddr, save
public static final int C_SVC
public static final int NU_SVC
public static final int ONE_CLASS
public static final int EPS_SVR
public static final int NU_SVR
public static final int CUSTOM
public static final int LINEAR
public static final int POLY
public static final int RBF
public static final int SIGMOID
public static final int CHI2
public static final int INTER
public static final int C
public static final int GAMMA
public static final int P
public static final int NU
public static final int COEF
public static final int DEGREE
public static SVM __fromPtr__(long addr)
public Mat getClassWeights()
public Mat getSupportVectors()
public Mat getUncompressedSupportVectors()
public static ParamGrid getDefaultGridPtr(int param_id)
public static SVM create()
public static SVM load(java.lang.String filepath)
public TermCriteria getTermCriteria()
public boolean trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid, ParamGrid pGrid, ParamGrid nuGrid, ParamGrid coeffGrid, ParamGrid degreeGrid, boolean balanced)
public double getC()
public double getCoef0()
public double getDegree()
public double getGamma()
public double getNu()
public double getP()
public int getKernelType()
public int getType()
public void setC(double val)
public void setClassWeights(Mat val)
public void setCoef0(double val)
public void setDegree(double val)
public void setGamma(double val)
public void setKernel(int kernelType)
public void setNu(double val)
public void setP(double val)
public void setTermCriteria(TermCriteria val)
public void setType(int val)
Generated on Wed Jul 4 2018 14:01:58 UTC / OpenCV 3.4.2