Class SVMClassificationType
java.lang.Object
org.tribuo.classification.libsvm.SVMClassificationType
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,Serializable,SVMType<Label>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe classification model types. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an SVMClassificationType using the supplied SVM algorithm. -
Method Summary
Modifier and TypeMethodDescriptionintThe LibSVM int id for the algorithm.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenancebooleanIs this an anomaly detection algorithm.booleanIs this a classification algorithm.booleanisNu()Is this a nu-SVM.booleanIs this a regression algorithm.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
SVMClassificationType
Constructs an SVMClassificationType using the supplied SVM algorithm.- Parameters:
type- The SVM algorithm.
-
-
Method Details
-
isClassification
public boolean isClassification()Description copied from interface:SVMTypeIs this a classification algorithm.- Specified by:
isClassificationin interfaceSVMType<Label>- Returns:
- True if it's a classification algorithm.
-
isRegression
public boolean isRegression()Description copied from interface:SVMTypeIs this a regression algorithm.- Specified by:
isRegressionin interfaceSVMType<Label>- Returns:
- True if it's a regression algorithm.
-
isAnomaly
-
isNu
-
getNativeType
public int getNativeType()Description copied from interface:SVMTypeThe LibSVM int id for the algorithm.- Specified by:
getNativeTypein interfaceSVMType<Label>- Returns:
- The int id.
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenancein interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-