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
-
-
Constructor Details
-
SVMParameters
-
-
Method Details
-
getSvmType
-
getKernelType
-
getParameters
-
toString
-
setProbability
Makes the model that is built provide probability estimates. -
setCost
-
setNu
-
setCoeff
-
setEpsilon
-
setDegree
-
setGamma
-
getGamma
-
setCacheSize
-
copyParameters
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.
-