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
FieldsModifier and TypeFieldDescriptiondouble
int
double
Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
Constructors -
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 svmCoefficient -
svmDegree
@Option(longName="svm-degree", usage="Degree in polynomial kernel. Defaults to 3.") public int svmDegree -
svmGamma
@Option(longName="svm-gamma", usage="Gamma value in kernel function. Defaults to 0.0.") public double svmGamma -
svmKernel
@Option(longName="svm-kernel", usage="Type of SVM kernel. Defaults to LINEAR.") public KernelType svmKernel -
svmType
@Option(longName="svm-type", usage="Type of SVM. Defaults to C_SVC.") public SVMClassificationType.SVMMode svmType
-
-
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.
-