public class SVMParameters<T extends Output<T>> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected KernelType |
kernelType |
protected libsvm.svm_parameter |
parameters |
protected SVMType<T> |
svmType |
Constructor and Description |
---|
SVMParameters(SVMType<T> svmType,
KernelType kernelType) |
Modifier and Type | Method and Description |
---|---|
static libsvm.svm_parameter |
copyParameters(libsvm.svm_parameter input)
Deep copy of the svm_parameters including the arrays.
|
double |
getGamma() |
KernelType |
getKernelType() |
libsvm.svm_parameter |
getParameters() |
SVMType<T> |
getSvmType() |
void |
setCacheSize(double cacheMB) |
void |
setCoeff(double coeff) |
void |
setCost(double c) |
void |
setDegree(int degree) |
void |
setEpsilon(double epsilon) |
void |
setGamma(double gamma) |
void |
setNu(double nu) |
void |
setProbability()
Makes the model that is built provide probability estimates.
|
static String |
svmParamsToString(libsvm.svm_parameter param)
A sensible toString for svm_parameter.
|
String |
toString() |
protected final KernelType kernelType
protected final libsvm.svm_parameter parameters
public SVMParameters(SVMType<T> svmType, KernelType kernelType)
public KernelType getKernelType()
public libsvm.svm_parameter getParameters()
public void setProbability()
public void setCost(double c)
public void setNu(double nu)
public void setCoeff(double coeff)
public void setEpsilon(double epsilon)
public void setDegree(int degree)
public void setGamma(double gamma)
public double getGamma()
public void setCacheSize(double cacheMB)
public static libsvm.svm_parameter copyParameters(libsvm.svm_parameter input)
input
- The parameters to copy.public static String svmParamsToString(libsvm.svm_parameter param)
param
- The parameters.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.