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_parameter
copyParameters
(libsvm.svm_parameter input) Deep copy of the svm_parameters including the arrays.double
getGamma()
libsvm.svm_parameter
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
Makes the model that is built provide probability estimates.static String
svmParamsToString
(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.
-