Class SVMParameters<T extends Output<T>>
java.lang.Object
org.tribuo.common.libsvm.SVMParameters<T>
- All Implemented Interfaces:
Serializable
A container for SVM parameters and the kernel.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic libsvm.svm_parametercopyParameters(libsvm.svm_parameter input) Deep copy of the svm_parameters including the arrays.doublegetGamma()libsvm.svm_parametervoidsetCacheSize(double cacheMB) voidsetCoeff(double coeff) voidsetCost(double c) voidsetDegree(int degree) voidsetEpsilon(double epsilon) voidsetGamma(double gamma) voidsetNu(double nu) voidMakes the model that is built provide probability estimates.static StringsvmParamsToString(libsvm.svm_parameter param) A sensible toString for svm_parameter.toString()
-
Field Details
-
svmType
-
kernelType
-
parameters
protected final libsvm.svm_parameter parameters
-
-
Constructor Details
-
SVMParameters
-
-
Method Details
-
getSvmType
-
getKernelType
-
getParameters
public libsvm.svm_parameter getParameters() -
toString
-
setProbability
public void setProbability()Makes the model that is built provide probability estimates. -
setCost
public void setCost(double c) -
setNu
public void setNu(double nu) -
setCoeff
public void setCoeff(double coeff) -
setEpsilon
public void setEpsilon(double epsilon) -
setDegree
public void setDegree(int degree) -
setGamma
public void setGamma(double gamma) -
getGamma
public double getGamma() -
setCacheSize
public void setCacheSize(double cacheMB) -
copyParameters
public static libsvm.svm_parameter copyParameters(libsvm.svm_parameter input) Deep copy of the svm_parameters including the arrays.- Parameters:
input- The parameters to copy.- Returns:
- A copy of the svm_parameters.
-
svmParamsToString
A sensible toString for svm_parameter.- Parameters:
param- The parameters.- Returns:
- A String describing the parameters.
-