Package org.tribuo.classification.libsvm
Class LibSVMOptions
java.lang.Object
org.tribuo.classification.libsvm.LibSVMOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
,ClassificationOptions<LibSVMClassificationTrainer>
public class LibSVMOptions
extends Object
implements ClassificationOptions<LibSVMClassificationTrainer>
CLI options for training a LibSVM classification model.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Intercept in kernel function.int
Degree in polynomial kernel.double
Gamma value in kernel function.Type of SVM kernel.Type of SVM.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConstructs the trainer based on the provided arguments.
-
Field Details
-
svmCoefficient
@Option(longName="svm-coefficient", usage="Intercept in kernel function. Defaults to 0.0.") public double svmCoefficientIntercept in kernel function. Defaults to 0.0. -
svmDegree
@Option(longName="svm-degree", usage="Degree in polynomial kernel. Defaults to 3.") public int svmDegreeDegree in polynomial kernel. Defaults to 3. -
svmGamma
@Option(longName="svm-gamma", usage="Gamma value in kernel function. Defaults to 0.0.") public double svmGammaGamma value in kernel function. Defaults to 0.0. -
svmKernel
@Option(longName="svm-kernel", usage="Type of SVM kernel. Defaults to LINEAR.") public KernelType svmKernelType of SVM kernel. Defaults to LINEAR. -
svmType
@Option(longName="svm-type", usage="Type of SVM. Defaults to C_SVC.") public SVMClassificationType.SVMMode svmTypeType of SVM. Defaults to C_SVC.
-
-
Constructor Details
-
LibSVMOptions
public LibSVMOptions()
-
-
Method Details
-
getOptionsDescription
- Specified by:
getOptionsDescription
in interfacecom.oracle.labs.mlrg.olcut.config.Options
-
getTrainer
Description copied from interface:ClassificationOptions
Constructs the trainer based on the provided arguments.- Specified by:
getTrainer
in interfaceClassificationOptions<LibSVMClassificationTrainer>
- Returns:
- The trainer.
-