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
-
-
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.
-